View Code? Open in Web Editor
NEW
A centralized collection of git commands.
git's Introduction
A centralized collection of git commands.
Getting & Creating Projects
Command |
Description |
git init |
Initialize a local Git repository |
git clone ssh://[email protected]/[username]/[repository-name].git |
Create a local copy of a remote repository using SSH |
git clone http://github.com/[username]/git.git |
Create a local copy of a remote repository using HTTP |
Viewing & Changing Remote Origin
Command |
Description |
git remote -v |
Check remote origin HTTP or SSH connection |
git remote rm origin |
Remove remote origin |
git remote add origin ssh://[email protected]/[username]/[repository-name].git |
Add SSH remote origin |
git clone http://github.com/[username]/git.git |
Add HTTP remote origin |
Command |
Description |
git mv <old name> <new name> |
Rename folder locally |
[To be continued]