Created
March 8, 2019 08:31
-
-
Save stilografico/6fe91b1dba2da7d1f0ad989514ea94fa to your computer and use it in GitHub Desktop.
GIT Commandds
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Global setup | |
| git config --global user.name "Andrea" | |
| git config --global user.email "stilografico.it@gmail.com" | |
| Create a new repository | |
| git clone git@gitlab.com:stilografico/test2.git | |
| cd test2 | |
| touch README.md | |
| git add README.md | |
| git commit -m "add README" | |
| git push -u origin master | |
| Existing folder | |
| cd existing_folder | |
| git init | |
| git remote add origin git@gitlab.com:stilografico/test2.git | |
| git add . | |
| git commit | |
| git push -u origin master | |
| Clone repository on localmachine | |
| git clone git@gitlab.com:stilografico/test2.git | |
| cd existing_repo | |
| git remote add origin git@gitlab.com:stilografico/test2.git | |
| git push -u origin --all | |
| git push -u origin --tags | |
| Caricamento Progetto su Repository da existing folder | |
| git init; | |
| git remote add origin git@gitlab.com:stilografico/bardianicsf.git; | |
| git add .; | |
| git commit -m 'Master Pubblished'; git push -u origin master; | |
| git add .; git commit -m 'commento'; git push -u origin master; | |
| Configurare un nuovo remote [git@bitbucket.org:cobaltodev/gruppodallagrassa.it.git] -----> è il nuovo remote | |
| git remote set-url origin git@bitbucket.org:cobaltodev/gruppodallagrassa.it.git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment