A simple tutorial for the most basic git workflow for beginners, along with how to create a github repo and upload it to github. Here are the basic steps:

1. git init . (initialize the current directory as a git repository)
2. git status (see changes to tracked files, untracked files, etc.)
3. git add /path/to/file/or/dir (add just that file or directory to git)
3a. git add . (add everything in the current directory)
4. git commit -m “commit message”
5. git push (push to an upstream repo, if you’ve configured it)

These are the very basics of creating a repository and pushing it up to github. I’ll do another video with a more theoretical and thorough look at git basics, but that one will be much longer.

Pro Git Book (free):

My Free Linux Sysadmin Course Playlist:

Check out my step-by-step project-based Linux course for beginners, 93% off when you use this link:

Official Site & e-mail list:
Twitter:
Facebook:
Patreon:
Podcast:

Nguồn: https://codeigniterbrasil.com

Xem thêm bài viết khác: https://codeigniterbrasil.com/lap-trinh-linux/

12 Comments

Beau Boswell

May 16, 2020

You are the best!

Reply

Fermín Mata

May 16, 2020

Very helpful tutorial thank you 🙏

Reply

Apakuki Nayacakalou

May 16, 2020

Awesome video series!!! I've gone and bought the udemy course! Thanks for the great content!

Reply

DarkSoldier

May 16, 2020

i like your terminal and your git prompt

Reply

tobortine

May 16, 2020

Nice video. I find that git gui is slightly easier if you're new to git.

Reply

Micah Mount

May 16, 2020

Nicely done! I use this exact workflow almost daily.

Reply

Julio Oliveira

May 16, 2020

Is the podcast dead?

Reply

Techie 92

May 16, 2020

I love you man <3

Reply

pop pop

May 16, 2020

Git is sometimes a bit complicated. It does deliver though. Every coder should know the basics of git. I somtimes get a bit enjoyed when people I work with use some git gui but don't really know what they are doing and screw things up. You can use a gui but you have to know what you are doing.

Reply

bilal sajid

May 16, 2020

can you make video on email servers. like postfix

Reply

Craig

May 16, 2020

Best videos, dude!

Reply

ctrlPain

May 16, 2020

your tutorials are the best <3

is there a way to have git or derived from git, on a local server? Can you show how?

Reply

Leave a Reply