- If you are the first time user:
Step1: Create a new repository on github.com (supposed you already have a github account), private or public. In example below, the repository is named as PREDICT-HD
Step2: [optional] generate the public key and add to your github account
Follow this help page exactly: https://help.github.com/articles/generating-ssh-keys/
Step3: Push the code to github from your local computer,
cd ~/project/PREDICT-HD/src
git init
Step2: [optional] generate the public key and add to your github account
Follow this help page exactly: https://help.github.com/articles/generating-ssh-keys/
Step3: Push the code to github from your local computer,
cd ~/project/PREDICT-HD/src
git init
git add *
git commit -m "my first commit"
git config --global user.name "Your Name"
git config --global user.email you@example.com
git remote add origin git@github.com:sterding/PREDICT-HD.git
git push origin master
- If collaborator already push a commit before you want to push your commit
git add xxx
git commit -m ""
git pull
git push origin master
- If you want to remove files only from git repo, not physically delete from the file system:
git rm --cached file1.txt
No comments:
Post a Comment