-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGit-Manual.txt
More file actions
41 lines (27 loc) · 749 Bytes
/
Git-Manual.txt
File metadata and controls
41 lines (27 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
https://www.instructables.com/id/Introduction-to-GitHub/
https://www.neonscience.org/search?keyword=git
#Tell Git who you are
git config --global user.name "simhon"
git config --global user.email "xxx@gmail.com"
#Initialize Git Repo
git init
#Create Repo (Github) with Readme
#Link Github Repo to Git
git remote add origin https://github.com/<username>/<repo name>.git
--------------------------------------
#Add local files
git add .
#Commit changes to local repo
git commit -m "initial source commit"
#Upload local changes to Github
git push origin master
--------------------------------------
#Updated local repo from Github
git pull origin master
git status
git log
git checkout
git branch
-------
Changes in test branch
Change 2