Last active
September 7, 2020 11:40
-
-
Save foxcarlos/9fc34a51bc2e600d11f2e2104155ac3d to your computer and use it in GitHub Desktop.
git_clone.py
This file contains 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
# Configuracion para git pull | |
git config pull.rebase false # hacer merge (estrategia por defecto) | |
git config pull.rebase true # aplicar rebase | |
git config pull.ff only # aplicar solo fast-forward | |
Command line instructions | |
You can also upload existing files from your computer using the instructions below. | |
Git global setup | |
git config --global user.name "FoxCarlos" | |
git config --global user.email "foxcarlos@gmail.com" | |
Create a new repository | |
git clone git@gitlab.com:foxcarlos/artware.git | |
cd artware | |
touch README.md | |
git add README.md | |
git commit -m "add README" | |
git push -u origin master | |
Push an existing folder | |
cd existing_folder | |
git init | |
git remote add origin git@gitlab.com:foxcarlos/artware.git | |
git add . | |
git commit -m "Initial commit" | |
git push -u origin master | |
Push an existing Git repository | |
cd existing_repo | |
git remote rename origin old-origin | |
git remote add origin git@gitlab.com:foxcarlos/artware.git | |
git push -u origin --all | |
git push -u origin --tags |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment