You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cd /home/workplace/ #/home/workplace is the directory you choose
git init #initialize
git remote add origin https://github.com/cooljiansir/osniffer.git
git fetch origin doc #doc is the document branch,
git checkout doc #doc is the document branch
ls #now you can see these documents!
push doc to the server
cd /home/workplace #the directory you choose
git status #see uncommited changes
git add *#if needed add some new files to git
git commit -am "some comment..."#commit your changes
git push origin doc #push your commit to the remote server
About the branchs
as the example above,we use doc branch,the same way to other branchs:
doc the document branch
web2 the html\css\js.... codes
master the cgi\server c code
The text was updated successfully, but these errors were encountered:
Git----a better life!
When first time use git
fetch doc
push doc to the server
About the branchs
as the example above,we use doc branch,the same way to other branchs:
the document branch
the html\css\js.... codes
the cgi\server c code
The text was updated successfully, but these errors were encountered: