Trying to get started with git

I am trying to start using git, but I am having problems right away. I am using the Git GUI for Windows. Keep in mind that I have never used version control before and don’t know how this works.

I have a Code :: Blocks C project in a folder on my laptop hard drive. I opened Git and created a new repository on the USB hard drive. I decided that I could create a branch that led to the already existing directory of my project, and then transfer all the code to it in the repository. Then, every time I wanted to work on this project, I could check my code, open the Code :: Blocks project and edit it. And then get into different industries and stuff, you know, all this jazz.

So, I created this repository and went to create a branch from the menu. I got this dialog that asked me to either the name of the branch, or "Match the name of the tracking branch (whatever that means)." Then, in the "Start of revision" section, he has several options. The first is the expression “Revision” next to the text box, and no matter what I enter, this is an invalid rendition expression. So I tried other options: "Local Branch", "Tracking Branch" and "Tag". They allow you to use a different text field, but even if the expression “Revision expression” is not selected, it still says that I entered the wrong one. What is an audit expression? How can I check the code in a directory on my hard drive?

Oh, and then there’s the “Options” section with “Update an existing branch: [] No [x] Only fast-forward [] Reset,”
and two flags, “Fetch Tracking Branch” and “Check Out After Creation (this is obvious).” What does all of this mean? What is the tracking branch? What does "Fast Forward" and "Reset" mean? I have no idea what I am doing or what I have done.

+3
source share
2 answers

I am a little confused by what you are trying to do.

First of all, if your code is on your laptop, then why are you creating a repository on your USB drive? With git, unlike CVS or SVN, the repository always exists in the root directory of the project.

, , : git C. . , (), , "color-dialogs" . , . - , , 1.0: "1.0", . "1.1" "2.0". - , , , , - . , , , "color-dialogs" , , "" , - . , , "color-dialogs" , , .

- , .

, : HD . , , ( git checkout). , HD USB-. ( ).

+5

Git , Simon Edwards , , git. "", Git .

+1

Source: https://habr.com/ru/post/1709284/


All Articles