
Important so that you know when a team mate has pushed new changes to the branch, and you should pull down those changes. git branch -set-upstream-to origin/develop : this will make sure your local branch will track the remote branch.git checkout -b develop: there will probably be a develop branch off master.I found this was lacking in all the articles on the internet, just articles that explain what gitflow is and why you should use it.
Sourcetree resolve conflicts how to#
The rest of this article is about how to implement gitflow. I still am not too sure about the benefits of gitflow on an individual project with no collaborators. Until then, it was all theory with limited benefit. It took me a few months of working in a team environment on the same code base before I really understood gitflow. However it is the default for most companies around the world, just like yyyy mm dd is a known default for naming files. Gitflow is just one way of using git to implement version control. Is it v1 or is it 2017 10 27 1138? This is akin to gitflow. However it is up the users to define which naming convention they should use for their version control.
Sourcetree resolve conflicts update#
Append the document name with a time stamp: yyyy mm dd hhmm (2017 10 27 1138 to represent the at 11.38am)īoth these methods use the same system of version control: the users save the file and update the file name.Append the document name with the version number: v1, v2, etc.For now, just know that git is a way to manage version control for your files.Ībove we have two examples of how you could implement version control on a document:

In my experience, I didn’t really understand its power until I used it in a team environment. This is fantastic if you have hundreds of files that interact with each other, such as a code base or a playbook. Git also handles version control for an entire folder of work. Wouldn’t it be great if you knew exactly what changed between your version and someone else’s version? Git will show you that. Git is a smarter way of implementing version control. Even then, there are issues when multiple people edit the file at the same time. For example, if everyone is working on one presentation for a sales pitch. The above examples work for standalone files that don’t need to interact with other files. This is another way of implementing version control.

“Important doc 2017 10 27 1138 My_Name” instead of the simple “v1” and “v2”. When you work on the same document with multiple other people, you may all agree to save files using a time stamp and your name. That is one way of implementing version control. You might be used to saving documents as “Important doc v1” and “Important doc v2”. What is git and gitflow? Git is a version control system
