-
-
Save pixrr/fd2e1432efaa9a3d9b4b7e51d47d9335 to your computer and use it in GitHub Desktop.
Revisions
-
hofnerb revised this gist
Apr 13, 2015 . 1 changed file with 2 additions and 2 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,10 +18,10 @@ git remote -v git branch -vv ``` ### Push `local_branch` to remote `remote_branch`, i.e., to a branch with a different name ``` ## to set the pull git push -u remote local_branch:remote_branch ## to set the default push git config push.default upstream ``` -
hofnerb revised this gist
Apr 13, 2015 . 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,5 +20,9 @@ git branch -vv ### Push `local_branch` to remote `branch_with_different_name` ``` ## to set the pull git push -u remote local_branch:branch_with_different_name ## to set the default push git config push.default upstream ``` (see http://stackoverflow.com/a/5739015/2574238 and http://stackoverflow.com/a/5740047/2574238) -
hofnerb revised this gist
Apr 13, 2015 . 1 changed file with 5 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 @@ -16,4 +16,9 @@ git remote -v ### Check remote tracking repository ``` git branch -vv ``` ### Push `local_branch` to remote `branch_with_different_name` ``` git push -u remote local_branch:branch_with_different_name ``` -
hofnerb revised this gist
Apr 13, 2015 . 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 @@ -11,4 +11,9 @@ git remote -v # Verify new remote URL ``` (Source: http://stackoverflow.com/a/19298943/2574238) ### Check remote tracking repository ``` git branch -vv ``` -
hofnerb created this gist
Apr 10, 2015 .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,14 @@ ### Review and Change Remote URL ``` git remote -v # View existing remotes git remote set-url origin https://github.com/user/repo2.git # Change the 'origin' remote's URL git remote -v # Verify new remote URL ``` (Source: http://stackoverflow.com/a/19298943/2574238)