User Tools

Site Tools


cs:git
Return to Home page

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
cs:git [2019/02/26 14:33]
127.0.0.1 external edit
cs:git [2019/05/22 14:06] (current)
zioskenz
Line 34: Line 34:
  
 ==== On the client ==== ==== On the client ====
-''​ssh git@apinda.polito.it "git init --bare /​home/​git/​abc.git"'':​ creates the new remote repository +  - ''​ssh git@apinda.polito.it "git init --bare /​home/​git/​abc.git"'':​ creates the new remote repository 
-''​git clone git@apinda.polito.it:/​home/​git/​abc.git'':​ copy the new repository locally +  ​- ​''​git clone git@apinda.polito.it:/​home/​git/​abc.git'':​ copy the new repository locally 
-''​git add <​files>''​ +  ​- ​''​git add <​files>''​ 
-''​git commit -m "​message"''​ +  ​- ​''​git commit -m "​message"''​ 
-''​git push origin master'':​ Le altre volte basta fare ''​git push''​+  ​- ​''​git push origin master'':​ Le altre volte basta fare ''​git push''​ 
 + 
 +==== Double commit and push ==== 
 +Sometimes, after a double ''​commit''​ followed by a ''​push'',​ git returns an error. A possible way to resolve the error is running the following there commands: 
 +<code bash> 
 +git stash 
 +git pull 
 +git stash pop 
 +</​code>​
  
 ===== Resources ===== ===== Resources =====

If you found any error, or if you want to partecipate to the editing of this wiki, please contact: admin [at] skenz.it

You can reuse, distribute or modify the content of this page, but you must cite in any document (or webpage) this url: https://www.skenz.it/cs/git?rev=1558526782&do=diff
/web/htdocs/www.skenz.it/home/data/pages/cs/git.txt · Last modified: 2019/05/22 14:06 by zioskenz

Privacy Policy