Learn Git in an afternoon (Beginners) ๐๐ฑโ๐ป
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:
GitGithubHow 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 ๐)
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK