-
Notifications
You must be signed in to change notification settings - Fork 0
Created a guide to using Azure and Github #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
1ba8a21
a2608f3
8c26a05
ec794c2
db4c91d
a1346d4
1b8e54e
1ccba73
8817a95
4e9adea
738c1da
8b49ceb
a1484a7
c0eacd6
478284c
60b40d7
71e7ce5
d9b309d
ac2fbb3
f93e79a
3af84eb
3e55d5e
3b16619
6f2c1a0
c3f6c9d
59126bf
65682c8
8fe66a6
596dfea
e3fb5f1
2879976
f03106f
638f638
8956a5a
56b1a73
d416171
753b5e9
66ce6ef
89d3d60
592fb70
3a02093
9fd25ec
cbb62d8
6fad8f3
41149a5
1f74ab5
0a895cd
58348f0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Github Quick Start | ||
## 1.Code Download | ||
> git clone | ||
|
||
Add the link obtained from the corresponding project to copy the project locally. | ||
## 2.Default Agreement | ||
If the command provided in the documentation does not explicitly specify a directory, it means that the command is executed in the directory of the downloaded folder. | ||
## 3.User Settings | ||
The download of code in Github does not require authentication, but the upload of code requires authentication, which requires some local configuration. | ||
> git config --global user.name YourUserName | ||
> git config --global user.email YourEmail | ||
|
||
Generate your own key | ||
>ssh-keygen -t rsa -C YourEmail | ||
|
||
Keep pressing enter and the key will be saved in the default directory. | ||
View Key | ||
> cd ~/.ssh/ | ||
> vim id_rsa.pub | ||
|
||
Copy the key to the corresponding project on Github to complete the authentication. | ||
 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you upload the pic to this repo? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This photo can be viewed normally on the web, I see the convention is to transfer the picture to the cloud and then link it like this. |
||
|
||
|
||
## 4.Code Upload | ||
### Code Modification | ||
Generally the cloned code will go to the master branch by default, we need to create a separate branch and make changes to the code on our own branch. | ||
> git branch your-Alias/filename | ||
> git checkout your-Alias/filename | ||
|
||
### Code Submission | ||
After making changes on the cloned document, you can start the code commit process. | ||
Add the changes to the staging area | ||
> git add yourfilename | ||
|
||
Adding cache contents to the local repository. | ||
> git commit -m ‘Your File Note’ | ||
|
||
Submitting code to the cloud repository. | ||
> git push --set-upstream origin your-Alias/filename | ||
|
||
# Some good learning documents of Github | ||
[Github configuration and use](http://t.zoukankan.com/jiaxblog-p-9574441.html"github配置及使用") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please provide mark this as Chinese article. |
||
|
||
[Github docs](https://docs.github.com/cn"github官方文档") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please provide both Chinese and English version from Github docs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Download a private repo also needs authentication.