Created
November 19, 2018 17:16
-
-
Save a-m-dev/fac0607d75aeae665dd5c335be2e3c6a to your computer and use it in GitHub Desktop.
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
Command line instructions | |
Git global setup | |
git config --global user.name "a_m_dev" | |
git config --global user.email "a.mirzaei.dev@gmail.com" | |
Create a new repository | |
git clone http://tpi.uneed.ir:8888/root/webApp-main.git | |
cd webApp-main | |
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 http://tpi.uneed.ir:8888/root/webApp-main.git | |
git add . | |
git commit -m "Initial commit" | |
git push -u origin master | |
Existing Git repository | |
cd existing_repo | |
git remote rename origin old-origin | |
git remote add origin http://tpi.uneed.ir:8888/root/webApp-main.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