Git clone is used to copy the existing repository to the specified folder on your computer. It’s used while starting a new project or if you want to initialize the git repo inside the existing project. Git init is used to initialize an empty repository from the folder you are currently using this command or using folder path, both ways are correct. Head is the most recent commit of the repository you work with. Merge is an action that adds changes from one branch to another. Master is the main branch of the repository. The main branch in git is master.Ĭommit may be imagined as a single save of changes to the specific branch.Ĭheckout is the operation of switching between the current branch and the one specified in the command. Repository keeps all your project's files, including commits and branches.īranch is a copy of the repository holding the specific version. Let’s start! A few basic terms which help to understand git commands If you don't know how to set up a git repository, check out our Youtube tutorial. In the end, I will also tell you about the GUIs for git, which I used some time ago or use right now and which I really like because of their simplicity. Also, I would like to go through some basic terms every developer should know to understand git-flow. This is why today, I decided to create a simple cheat sheet with the basic git commands which you can take a look at and use whenever you’ve just forgotten what you have to put inside the command line or need to refresh your memory. When some time ago, I created a simple Git and Github tutorial for Youtube, I noticed how many people were interested in this topic. But still many people forget to check out how git works and what commands are responsible for what action. Browsing job offers for software engineers, you many realize that knowing git is nearly as important as knowing an actual programming language. Git is a very useful skill to have and almost necessary in many companies. This article was originally published at Git cheatsheet
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |