e.g. 'git checkout git cherry-pick '
Keeps the modified files in staging directory and resets to specified hash
Keeps the modified files in working directory and resets to specified hash
Resets the files to its original state. If there are any untracked file or directory then use git clean -df
Very similar to git reset, however reverts the changes without messing up the history of the commit. This command will isntead create a new commit to undo the changes.
Git stash is very much like git commit, but the commit will be saves in a stash with ID To list the stash - git stash list To retrieve the stashed changes
- git stash apply stash@{0} - This keeps the changes stash changes in tact.
- git stash pop - This will pop out the changes from stash and stash will be empty To delete a stash entry - git stash drop stash@{0} To clear all stash entries - git stash clear
'virtualenv -p /usr/bin/python3.7
source /bin/activate
deactivate'
e.g. 'git checkout git cherry-pick '
Keeps the modified files in staging directory and resets to specified hash
Keeps the modified files in working directory and resets to specified hash
git checkout master git branch -d
git push --delete . For example: git push origin --delete fix/authentication