![]() ![]() If you run "git status", you should see a message saying your file is untracked: $ git status So what about creating a new markdown file with "Hello World!" written in it? echo Hello World! > file.md Now you have a new, empty Git repository. ![]() That's exactly how you'd do it: mkdir my-app Let's say you want to create a new folder called "my-app", enter it, and start a new Git repository. We'll begin with the first way of creating a branch. Besides creating branches, it can also be used to list and delete them, and you can further customize the command by employing a broad list of parameters. Like many other Git commands, "branch" is very powerful and flexible. You create branches in Git, unsurprisingly, by using the branch command. Then we'll end with a little reflection on Git's branching model and branching in general. There are several ways you can create a branch in Git. And without a doubt, one of Git's best features is how it takes away the pain of branching and merging. The tool created by Linus Torvalds has become synonymous with version control. If you write software for a living in 2018, then I can say with confidence you're familiar with Git. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |