-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGit_CodeDataSheet.txt
More file actions
31 lines (26 loc) · 885 Bytes
/
Git_CodeDataSheet.txt
File metadata and controls
31 lines (26 loc) · 885 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
git --version // kiem tra version cua git
git config
git config --help
git help config
git config --global user.name = "<NAME GITHUB ACCOUNT>"
git config --global user.email = "EMAIL GITHUB ACCOUNT"
// git bash 1 project
git status //kiem tra tinh trang project
git init //khoi tao
// theo doi tinh trang cac file trong project
git add "<TEN FILE>" //add file
git add .
git commit -m "commit to repo <optional text>" // nap vao repo
git commit -a -m "<optional text>" // add va nap vao repo
git log // xem lich su cap nhat
//cac buoc dua project len remote repository:
// b1:ktra status -> add, commit vao local repo
// b2: check link tren gihub
// b3: add remote
// b4: push
// b5: ktra repo tren Github
git remote add <TEN LOCAL PROJECT> <LINK REPO TREN GITHUB>
git push
git push --set-upstream <TEN LOCAL PROJECT> master
// clone project ve may
git clone <LINK PROJECT>