Last active
June 10, 2019 04:09
-
-
Save kapilghimire/575f7885817770fd823a28e891a40a4a to your computer and use it in GitHub Desktop.
Revisions
-
kapilghimire revised this gist
Jun 10, 2019 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -25,3 +25,6 @@ git merge --no-ff <<branch name>> // using diff tool git difftool <<filename>> // to copy last commit version of file to working directore git checkout filename -
kapilghimire revised this gist
Jun 4, 2019 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -20,4 +20,8 @@ $ (some_branch) git commit --amend --no-edit // no fast forward merge git merge --no-ff <<branch name>> // using diff tool git difftool <<filename>> -
kapilghimire revised this gist
Jun 3, 2019 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -16,4 +16,8 @@ git log --oneline $ (some_branch) git commit --amend // adding files to last commit no modifying last commit message $ (some_branch) git commit --amend --no-edit // no fast forward merge git merge --no-ff <<branch name>> -
kapilghimire revised this gist
May 31, 2019 . 1 changed file with 7 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,4 +10,10 @@ git reset --hard HEAD // rebase git rebase -i HEAD~3 git log --oneline // adding files to last commit modifying last commit message $ (some_branch) git commit --amend // adding files to last commit no modifying last commit message $ (some_branch) git commit --amend --no-edit -
kapilghimire revised this gist
May 28, 2019 . 1 changed file with 13 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1 +1,13 @@ git clean -fd // to add notepadd++ as default editor git config --global core.editor "'C:/Program Files/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin" // to reset your working directory to latest commit --- be sure what you are doing git reset --hard HEAD // rebase git rebase -i HEAD~3 git log --oneline -
kapilghimire created this gist
May 19, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ git clean -fd