Skip to content

Instantly share code, notes, and snippets.

@eyalgo
Last active September 15, 2017 16:26
Show Gist options
  • Save eyalgo/18367756398b1a9452f5 to your computer and use it in GitHub Desktop.
Save eyalgo/18367756398b1a9452f5 to your computer and use it in GitHub Desktop.
# see also http://kbroman.org/github_tutorial/pages/init.html
git init
# > Initialized empty Git repository in /home/eyalgo/development/eclipse-projects/file-system/.git/
git remote add origin [email protected]:eyalgo/<repository>.git
git pull
# > remote: Counting objects: 7, done.
# > remote: Compressing objects: 100% (6/6), done.
# > remote: Total 7 (delta 1), reused 0 (delta 0)
# > Unpacking objects: 100% (7/7), done.
# > From github.com:eyalgo/<repository>
# > * [new branch] master -> origin/master
git status
# > On branch master
git pull origin master
# > On branch master
git branch --set-upstream-to=origin/master master
# > Branch master set up to track remote branch master from origin.
@eyalgo
Copy link
Author

eyalgo commented Sep 15, 2017

git config --global --edit

After doing this, you may fix the identity used for this commit with:

`git commit --amend --reset-author`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment