Git & Linux Cheat Sheets
Git & Linux Cheat Sheets
git config --global user.name “<name>” Set a global username for Git in your local system
git config --global user.email “<emailID>” Set a global email for Git in your local system
git push <remote> <branch_name> Push local changes to the remote repo
-d: delete a branch that has been fully merged into the
git branch -d/-D <branch_name> current branch.
git pull <remote> <branch_name> Fetch and merge changes from the remote repo
git status Check the state of the repo and the files within
git remote add <name> <repository_url> Connect the local repo to the remote repo
git stash pop Apply & remove the most recent stash changes
git cherry-pick <commitID> Apply specific commits from one branch onto another
Bakul Warikoo
Linux Cheat Sheet
Command What is the purpose of each?
Bakul Warikoo