Important gitlab commands

Important gitlab commands

Command line instructions

Git global setup
git config --global user.name "aditya kumar singh"
git config --global user.email "aditya@apptology.in"
Create a new repository
git clone http://gitlab.apptology.com/aditya.kumar/garysir.git
cd garysir
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 http://gitlab.apptology.com/aditya.kumar/garysir.git
git add .
git commit
git push -u origin master


example :

git add file or folder or .
git commit -m "message"
git push -u origin master




Leave a Reply