2

Learn Git in an afternoon (Beginners) ๐Ÿ˜Ž๐Ÿฑโ€๐Ÿ’ป

 2 years ago
source link: https://dev.to/jafb321/learn-git-in-an-afternoon-beginners-200m
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Do you want to be able to have the control of your code and have a trustworthy and easy to make history of it?๐Ÿ“š If yes, this quick tutorial is for you!. First of all, we have to know some concepts:

GitGithub

How to install Git

First of all, we need to download Git and install it in our pc ๐Ÿ’ป. The install process is easy, you only need to open the installer and leave default options (if you want), then click next, next, install up to finish the installation

How to use Git

Git doesn't has a graphic user interface, so we have to use the terminal (cmd, powershell, bash, etc). Don't worry, the use of git is very intuitive and colorfuly โœจ.

Here are the basics about Git, I'll try to explain each one in the easier way possible

Create a repository ๐Ÿ› 
First thing that you need to do, is create a repository, for this you have to open your terminal and find/create the folder where your project is.



Add your files to the repository ๐Ÿ›’

Commit our changes ๐Ÿงช
In the last step, we added the files to the repository. When we add some file, the file is handled by git, but it isn't part of the history of changes, for this we need to "commit" our changes.



Repository history ๐Ÿ“š
Here, we'll see some tips for git log command, and I'll try to explain a couple of important things about it.


There are a lot of other interesting things that you can do with git, but this tutorial is more focused on the basics, so feel free to practice and learning more about it!

I'll write more useful posts about Git, Github and stuff. So follow me if you want to learn ๐Ÿ“Œ

(If you want to understand the meme, don't forget follow me to learn about git branches, gitignore, merge, remote, github, etc ๐ŸŽˆ)


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK