-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsync_github
More file actions
31 lines (29 loc) · 798 Bytes
/
sync_github
File metadata and controls
31 lines (29 loc) · 798 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
------------------
sync workspace
------------------
git init
git add .
<<<<<<< HEAD
git remote add orgin https://github.com/Zhoner/photogram.git
=======
git remote add origin https://github.com/Zhoner/photogram.git
>>>>>>> 3157e8176b49ad27f614f70a5015b413259eed3d
git remote -v
git pull --allow-unrelated-histories origin master
git commit -m "server"
git push origin master
-------------------
sync with github
-------------------
git add .
git commit -m "commnet"
git push origin master
------------
commands
------------
git ls-files -> view the files
<<<<<<< HEAD
git pull --allow-unrelated-histories orgin master -> get project from the repository
=======
git pull --allow-unrelated-histories orgin master -> get project from the repository
>>>>>>> 3157e8176b49ad27f614f70a5015b413259eed3d