Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- git remote add origin git@github.com:foo/bar.git
- git push origin master
- git clone --bare /path/to/repo /path/to/bare/repo.git # don't forget the .git!
- git remote add repo-name user@host:/path/to/repo.git #this assumes you're using SSH
- git push repo-name branch-name
- git pull repo-name branch-name
- git push <remote repo> <your branch>
- remote server> cd /home/ec2-user
- remote server> git init --bare --shared test
- add ssh pub key to remote server
- local> git remote add aws ssh://ec2-user@<hostorip>:/home/ec2-user/dev/test
- local> git push aws master
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement