How to use git in linux OS
Git global setup
git config --global user.name "your username",
git config --global user.email " your email address "
if this is your first time to use git in current system, you shold Add public key to gitlab service
ssh-keygen -t rsa -C “your email address”
there will be id_rsa file and id_rsa.pub file. The next is adding public ssh keys which are in id_rsa.pub file to gitlab website
Create a new repository
git clone [email protected]:luoxingcheng/darknet.git //download project
cd darknet
git checkout your-branch //switch to your branch, if needed.
git checkout -b new-branch // based on current branch to build a new branch, if needed
touch README.md //this is an example of development phase,
git add README.md // add the files which you have changed or added to temporary storage
git commit -am "add README" //form to a patch and push your patch to local branch
git push origin your-branch:your-branch //push your changes to remote branch
Existing folder or Git repository
cd existing_folder
git init
git remote add origin [email protected]:luoxingcheng/darknet.git
git add .
git commit
git push origin your-branch:your-branch