Skip to content

Instantly share code, notes, and snippets.

@Ikke
Created October 20, 2016 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ikke/2efc37dd77af47939e0af5a445fa47c9 to your computer and use it in GitHub Desktop.
Save Ikke/2efc37dd77af47939e0af5a445fa47c9 to your computer and use it in GitHub Desktop.
git test push.default
io git » git clone git-upstream git-downstream
Cloning into 'git-downstream'...
warning: You appear to have cloned an empty repository.
done.
io git » cd git-downstream
io git-downstream :: (master) » touch foo
io git-downstream :: (master*) » git add foo
io git-downstream :: (master*) » git commit
[master (root-commit) 03cdfed] foo
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 foo
io git-downstream :: (master) » git config push.default current
io git-downstream :: (master) » git push
Counting objects: 3, done.
Writing objects: 100% (3/3), 196 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To /home/kevin/misc/git/git-upstream
* [new branch] master -> master
io git-downstream :: (master) » git checkout -b branch
Switched to a new branch 'branch'
io git-downstream :: (branch) » echo bar>foo
io git-downstream :: (branch*) » git add foo
io git-downstream :: (branch*) » git commit
[branch 0c11cbf] bar
1 file changed, 1 insertion(+)
io git-downstream :: (branch) » git push
Counting objects: 3, done.
Writing objects: 100% (3/3), 230 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To /home/kevin/misc/git/git-upstream
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment