DEV Community

Cover image for Learn git commands in 3 minutes
Aman Sharma
Aman Sharma

Posted on

Learn git commands in 3 minutes

Refer the below Youtube Video link for better understanding.

https://youtu.be/4hLeQ6FEquY

Commands are -

For push-
git init

git remote add origin https://gitlab.com/crew-chief-systems/bot

git remote -v (for checking current repository)

git add -A(add all files)

git commit -m 'Added my project'

git pull --rebase origin master

git push origin master

For Global registratrtion-
git config --global user.email "you@example.com"
git config --global user.name "Your Name"

/// For pushing updates to Repo ---

git fetch origin master

git pull origin master

git add .

git commit -m 'your commit message'

git push origin master

Top comments (1)

Collapse
 
michaeltharrington profile image
Michael Tharrington

Heyo,

Would you please consider embedding your video here instead of just linking to it? This way folks can see your content and discuss things on DEV without having to navigate anywhere else.

You might not have realized, but DEV actually allows folks to embed YouTube & Vimeo videos via Liquid Tags:

https://dev-to-uploads.s3.amazonaws.com/i/jbiro72vueo6fi9k9rww.png

By the way, here's a link to the editor guide where you can see other liquid tags and formatting options.

Hope this is helpful! 🙂