- Ansible Labs - Installation/Setups and working with ansible playbooks
- Docker Labs: Use Vagrant-Labs --> CentOS-Docker and Docker-Swarm for installations/Setups with virtualbox
- Vagrant Labs to setup VMs on VirtualBox. Please follow readme given under Vagrant-Labs
Git Commands:
git addAdds from working directory to stating areagit commit -m "message"Commits file/s from staging to Local repogit statusshows status of gitgit logshows all commitsgit log --onelineabbreviated version of commitidsgit diff <filename>shows changes which were not staged (i.e changes made in working dir)git diff --staged <filename>shows what was added in staged areagit tag --a <tag name> <commit id>Adds tag to commit id (note commit id should be only the first 7 chars)git rm <filename>To remove file from git tracking (doesn’t remove from working dir)git ls-filesshows all files tracked by gitgit revert <commit id>to revert all changes done in a particular commitgit reset --hard <commit id>will reset the HEAD to a particular commit. All commits post that will be lost.
git checkout -b <branch name>creates new branch and moves HEAD to new branchgit checkout <branch>to switch branchesgit merge <branch>merges branch to the one we are on
git stashmove unstaged changes to a temporary placegit stash listshows the various stashes as shash numbergit stash pop <stash number>To get the changes back in working directorygit stash apply <stash number>Same as git stash popgit stash -uTo stash untracked files in working dirgit stash clearTo delete stashgit stash dropto drop the stash
git remote add <originname> <SSH or HTTPS GIT Addr>Adds remote repo with origin as originnamegit clone <remote repository>cloning of remote repositorygit push originmaster Pushes to remote git repo from local repogit pull originPulls the remote git repository. It merges automatically (if no conflict)git fetch originDoesn’t merge the changes. It only shows the changes between local and remote