DEV Community

Dinesh G
Dinesh G

Posted on

Day 8 of My Java Full Stack Learning Journey: HTML&CSS

Hi Everyone!
Today is my eight day class in Java full stack Development course. I am going to share topic to push the code in git lab. What I learn Today.

Command for install git in terminal

sudo apt  - get install git 
sudo apt update
fix --missing
git --version
git config
Enter fullscreen mode Exit fullscreen mode

Commands to push the code in gitlab
Basic git commands

git init create a new git
git clone copy the code
git status check the copy status
git add check the status
git add. track all file and any other file
git restore-stage to untrack
git commit-m(message) save changes
git push upload to remote
git log check the history(see commit)
git branch list branch
git merge merge a branch

Happy Coding

Top comments (0)