Git: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
git config --global user.name "Full Name" | |||
git config --global user.email "[email protected]" | |||
'''undo assume unchanged or assume unchanged''' | |||
git update-index --no-assume-unchanged src/main/resources/application.properties | |||
git update-index --assume-unchanged src/main/resources/application.properties | |||
'''list of files assume unchanged''' | |||
git ls-files -v|grep '^h' | |||
==Git Stash== | |||
{| | {| | ||
| valign="top" | | | valign="top" | |
Revision as of 05:31, 23 June 2021
git config --global user.name "Full Name" git config --global user.email "[email protected]" undo assume unchanged or assume unchanged git update-index --no-assume-unchanged src/main/resources/application.properties git update-index --assume-unchanged src/main/resources/application.properties list of files assume unchanged git ls-files -v|grep '^h'
Git Stash
git stash apply stash@{index} git stash drop stash@{index} git stash pop stash@{index} git stash clear git stash list |
git apply --3way ~/.chorke/tmp/academia/patch/v1.0.00.patch git apply ~/.chorke/tmp/academia/patch/v1.0.00.patch git diff > ~/.chorke/tmp/academia/patch/v1.0.00.patch git stash apply stash^{/stash_v1.0.00} git stash push -m stash_v1.0.00 |
Git Tag
annotated tag git tag -a v1.5_initial_setup -m 'initial setup' git tag -a v1.5_initial_setup
lightweight tag git tag v1.5_initial_setup