-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
26 lines (19 loc) · 910 Bytes
/
README
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
[Note]
first create a remote branch on server and then push data to server from client
(1) "git remote add origin [email protected]:SuperRxan/lua.git"
---> note1: git@ instead of git://
note2: github.com:SuperRxan instead of github.com/SuperRxan
---> This operation add something in .git/config file
[remote "origin"]
url = [email protected]:SuperRxan/lua.git
fetch = +refs/heads/*:refs/remotes/origin/*
(2) "git push --set-upstream origin master"
---> This operation push data to server
---> This operation also config something in .git/config file
[branch "master"]
remote = origin
merge = refs/heads/master
which means:
Branch 'master' set up to track remote branch 'master' from 'origin'.
We can also use this command to set this config
"git branch -u origin/master"