-
-
Save mcmatrix/c19d3dd3a92d7a32f0eae4619663736e to your computer and use it in GitHub Desktop.
Revisions
-
mcmatrix revised this gist
Sep 17, 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 @@ -44,4 +44,8 @@ To set the flag, use following command: To remove it, use: git update-index --chmod=-x path/to/file Starting with Git 2.9, you can stage a file AND set the flag in one command: git add --chmod=+x path/to/file -
mcmatrix revised this gist
Sep 17, 2019 . 1 changed file with 4 additions and 4 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 @@ -37,11 +37,11 @@ ###### 8. Set permissions to file According to official documentation, you can set or remove the "executable" flag on any tracked file using update-index sub-command. To set the flag, use following command: git update-index --chmod=+x path/to/file To remove it, use: git update-index --chmod=-x path/to/file -
mcmatrix revised this gist
Sep 17, 2019 . 1 changed file with 12 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 @@ -33,4 +33,15 @@ git merge feature_branch git reset origin/master git add . --all git commit ###### 8. Set permissions to file According to official documentation, you can set or remove the "executable" flag on any tracked file using update-index sub-command. To set the flag, use following command: git update-index --chmod=+x path/to/file To remove it, use: git update-index --chmod=-x path/to/file -
mcmatrix revised this gist
Oct 27, 2018 . 1 changed file with 2 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 @@ -27,6 +27,8 @@ git merge --squash bugfix git commit or git commit --signoff or git checkout master && git pull git merge feature_branch git reset origin/master -
mcmatrix revised this gist
Jun 30, 2018 . 1 changed file with 12 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,15 @@ git fetch theirusername git checkout theirusername/theirbranch or create new branch mynamefortheirbranch git checkout -b mynamefortheirbranch theirusername/theirbranch ###### 7. Squashing Git Commits into one git checkout master git merge --squash bugfix git commit or git checkout master && git pull git merge feature_branch git reset origin/master git add . --all git commit -
mcmatrix revised this gist
Jun 22, 2018 . 1 changed file with 2 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 @@ -18,4 +18,6 @@ ###### 6. Checkout from fork git remote add theirusername https://github.com/theirusername/reponame git fetch theirusername git checkout theirusername/theirbranch or create new branch mynamefortheirbranch git checkout -b mynamefortheirbranch theirusername/theirbranch -
mcmatrix revised this gist
Jun 22, 2018 . 1 changed file with 6 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 @@ -13,4 +13,9 @@ git rebase master ###### 5. Update from remote. git pull ###### 6. Checkout from fork git remote add theirusername https://github.com/theirusername/reponame git fetch theirusername git checkout -b mynamefortheirbranch theirusername/theirbranch -
mcmatrix revised this gist
Jun 20, 2018 . 1 changed file with 4 additions and 5 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 @@ -1,17 +1,16 @@ ###### 1. Clone your fork: git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git ###### 2. Add remote from original repository in your forked repository: cd into/cloned/fork-repo git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git git fetch upstream ###### 3. Updating your fork from original repo to keep up with their changes: git pull upstream master ###### 4. Replay your commits on top of the new commits from the destination branch so that the merge can be a ‘fast-forward’. git rebase master ###### 5. Update from remote. git pull -
mcmatrix revised this gist
Jun 20, 2018 . 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 @@ -10,4 +10,8 @@ ###### 3. Updating your fork from original repo to keep up with their changes: git pull upstream master ###### 4. Replay your commits on top of the new commits from the destination branch so that the merge can be a ‘fast-forward’. git rebase master -
mcmatrix revised this gist
Jun 20, 2018 . 1 changed file with 3 additions and 3 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 @@ -1,13 +1,13 @@ ###### 1. Clone your fork: git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git ###### 2. Add remote from original repository in your forked repository: cd into/cloned/fork-repo git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git git fetch upstream ###### 3. Updating your fork from original repo to keep up with their changes: git pull upstream master -
mcmatrix revised this gist
Jun 20, 2018 . 1 changed file with 3 additions and 3 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 @@ -1,13 +1,13 @@ ## 1. Clone your fork: git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git ## 2. Add remote from original repository in your forked repository: cd into/cloned/fork-repo git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git git fetch upstream ## 3. Updating your fork from original repo to keep up with their changes: git pull upstream master -
CristinaSolana revised this gist
Feb 22, 2012 . No changes.There are no files selected for viewing
-
CristinaSolana created this gist
Feb 22, 2012 .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,13 @@ ### 1. Clone your fork: git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git ### 2. Add remote from original repository in your forked repository: cd into/cloned/fork-repo git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git git fetch upstream ### 3. Updating your fork from original repo to keep up with their changes: git pull upstream master