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



Discover more from Soa Technology | Aditya Website Development Designing Company

Subscribe to get the latest posts sent to your email.



Leave a Reply

Discover more from Soa Technology | Aditya Website Development Designing Company

Subscribe now to keep reading and get access to the full archive.

Continue reading