Date created: 09/13/18 11:44:09. Last modified: 09/13/18 11:45:07

Git

http://ohshitgit.com/

 

Global settings:

git config --global user.name "James Bensley"
git config --global user.email "[email protected]"

 

Adding a git remote origin:

git remote add origin ssh://[email protected]/path/to/repository

git remote add origin http://IP/path/to/repository

git push -u origin master

 

Add a specific branch (e.g. master) from a remote origin:

git remote add --track master origin [email protected]:group/project.git # Using git

git remote add --track master origin http://github.com/group/project.git # Using HTTP

 

Replace the existing remote origin:

git remote set-url origin https://github.com/username/repo

 


Previous page: Cisco Watch
Next page: Audio Size