![]() ![]() It holds onto any file changes that you are considering committing to your local git repo. This phase right here is called your staging area. If we follow the instructions here and we do a git add, we see that file is now highlighted in green instead of red, and git is now aware of it as something that can be committed. This means that git can tell there’s a file in your current working directory, but it’s not keeping an eye on it yet. You should see that you have a single untracked file. So if you were to add files to this directory, we would be able to track any future changes to them.Īdd a file to your directory, then run a git status. We have no remote repository associated with this local git repository just yet, it simply lives on our machine and gives us all the version control features of git. Now run git init – you’ve just created a local git repository! In your terminal, create a new directory and cd into it. Local repos live on our machines and allow us the full benefit of git’s version control. our remote repo - which lives on GitHub, where anyone can view our files and clone or fork their own local copy. ![]() We cd into a project directory and edit our code files, we run git add and git commit on them, etc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |