Basic: Create a repository: git init Add files to repository to be committed: git add filename1 filename2 ( add files to stage) Make files committed git commit -m "xxx" (commit files to branch) Check the result git status Version Control: Compare the difference git diff filename Show history git log or git log –pretty=oneline Back …
How should we upload files to our own branch in GitHub?
When we are working on a group project with our teammates, usually we need to complete our own part of task and upload to GitHub, but what exactly should we do? 1 . Use "git clone" to clone the files. 2. Use "git status" We can see now we are in origin/master branch. 3. Create …
Continue reading “How should we upload files to our own branch in GitHub?”
Set multiple ssh-keys for different GitHub accounts on my Mac
Today when I tried to push update files to my GitHub repository it fails. I guess the reason of that may be that the GitHub account which I tried to push to is different from the GitHub account I was used to use on my Mac. But the new account will be used for two …
Continue reading “Set multiple ssh-keys for different GitHub accounts on my Mac”