Skip to content

LovHurt/HowToUseGitTerminal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

HowToUseGitTerminal

How to use Git terminal to deal with pull, push, fetch tasks on GitHub.

Step 1 - Download and Install Git Bash

Step 1 - Download and Install Git Bash

You can use any other programs too. This is what I currenty use.

Step 2 - Open Terminal in VS

Step 2 - Open Terminal in VS

Or you can use your terminal if you already opened it!

Step 3 - Create Your Own Branch

Step 3 - Create Your Own Branch

If you have previously created a branch, there is no need to create it again for this process!

Step 4 - Switch to Your Own Branch

Step 4 - Switch to Your Own Branch

Step 5 - Fetch from Origin Master

Step 5 - Fetch from Origin Master

Thus you can see if anyone pushed anything!

Step 6 - Pull from Origin Master

Step 6 - Pull from Origin Master

Just pull it!

Step 7 - Add All Your Changes

Step 7 - Add All Your Changes

If you want to add only a specific file, you can use the file's name: git add file_name

Step 8 - Commit with Your Message

Step 8 - Commit with Your Message

Step 9 - Push it to Your Remote Branch

Step 9 - Push it to Your Remote Branch

This is how you push your remote branch.

Step 10 - Go to github.com and Click Compare and Pull Request

Step 10 - Go to github.com and Click Compare and Pull Request

After you push your work to your remote branch you can create a pull request to update the origin master.

Step 11 - Open Pull Request with Comment

Step 11 - Open Pull Request with Comment

If the request is merged, it means that the transaction has been successfully completed. Well Done!

Additional Step 12 - Switch to Master

Additional Step 12 - Switch to Master

If you want to keep using terminal, you are on the right track! Now you switched to the master(but it is local be careful!).

Additional Step 13 - Merge It!!

Additional Step 13 - Merge It!!

You have merged your code with the master(local).

Additional Step 14 - Add Your Change To Staging Area

Additional Step 14

You put your changes to staging area.

Additional Step 15 - Commit It!

Additional Step 15

You have committed them, nice work buddy!

Additional Step 16 - Push it To The Origin Master(Or Limit?)!

Additional Step 16

Now is the time. Now you managed to push your changes to ORIGIN MASTER(which is remote).

Thank you for reading!

Don't forget to star!

Open to any other advices!

About

How to use Git terminal to deal with pull, push, fetch tasks on GitHub.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published