Skip to content

Instantly share code, notes, and snippets.

@milaptank
Created November 24, 2017 05:26
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 milaptank/778c4fe36ef994bd646ac34be6f4392e to your computer and use it in GitHub Desktop.
Save milaptank/778c4fe36ef994bd646ac34be6f4392e to your computer and use it in GitHub Desktop.
GIT add new repo command
Command line instructions
Git global setup
git config --global user.name "Milap Tank"
git config --global user.email "android@webmobtech.com"
Create a new repository
git clone https://gitlab.com/WebMobTechnologies/TCC_2016_Android.git
cd TCC_2016_Android
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
Existing folder or Git repository
cd existing_folder
git init
git remote add origin https://gitlab.com/WebMobTechnologies/TCC_2016_Android.git
git add .
git commit
git push -u origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment