- 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 add
Adds from working directory to stating areagit commit -m "message"
Commits file/s from staging to Local repogit status
shows status of gitgit log
shows all commitsgit log --oneline
abbreviated 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-files
shows 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 stash
move unstaged changes to a temporary placegit stash list
shows 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 -u
To stash untracked files in working dirgit stash clear
To delete stashgit stash drop
to drop the stash
-
git remote add <originname> <SSH or HTTPS GIT Addr>
Adds remote repo with origin as originname -
git clone <remote repository>
cloning of remote repository -
git push origin
master Pushes to remote git repo from local repo -
git pull origin
Pulls the remote git repository. It merges automatically (if no conflict) -
git fetch origin
Doesn’t merge the changes. It only shows the changes between local and remote