暗黑模式
Getting a Git Repository
教程Git
Initializing a Local Repository
bash
cd /home/ronnie/workplace/my_project
git init
git add .gitignore
git add LICENSE
git commit -m 'Initial project version'
1
2
3
4
5
2
3
4
5
Clone a Remote Repository
bash
git clone https://github.com/libgit2/libgit2
git clone https://github.com/libgit2/libgit2 mylibgit
git clone -b develop https://github.com/libgit2/libgit2 mylibgit
git clone -o my_origin https://github.com/libgit2/libgit2 mylibgit
1
2
3
4
2
3
4