Wednesday, April 25, 2012

Git Tips

For you who use github or git, these are several tips for you.
Getting your remote url
git remote -v
Will show up remote name, url, and fetch/push status
Changing remote url
git remote set-url [remote_name] [new_url]

Getting your ssh default key (via git bash)
ssh-keygen -y
Entering your passphrase, then you can get your ssh key which you can copy to your github or other git compatible versioning control
Pushing to your newly created git
git push [git_name] [branch]
eg:
git push my_first_git master

No comments:

Post a Comment