Skip to content

Instantly share code, notes, and snippets.

@a-m-dev
Created November 19, 2018 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save a-m-dev/fac0607d75aeae665dd5c335be2e3c6a to your computer and use it in GitHub Desktop.
Save a-m-dev/fac0607d75aeae665dd5c335be2e3c6a to your computer and use it in GitHub Desktop.
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