![]() You then upload your changes to Git's shared "remote repository" when you are done so others can access your code changes. In Git, you always create code on your local computer first and then save your code into Git's "local repository" (repo) on your computer. I have been using Git for years, but oddly enough nobody here or online seems to be able to explain in simple terms how Git's push, pull, commit, or pull requests really work. Editors like vim or emacs will add highlighting and automatic word wrapping making it a lot easier to write well formatted commit messages.A Common Sense Explanation of How Git Works Simple editors like nano make it hard to create well formatted messages. Set git to use a good editor by running git config -global core.editor EDITOR. If you use git revert command to undo a commit, git generates a default commit message specifying the hash and commit message of the commit you're undoing, but this is not enough to know *why* you're reverting it, so please add more comments to it. You would probably expect the same from others. Give other users the credit they deserve.If the commit fixes an issue, add a line on the last paragraph: "Fixes #ISSUE_NUMBER.".If the commit relates to an issue, don't forget to reference it using "#ISSUE_NUMBER" syntax.Use normal language and punctuation here.You may leave out the description if the summary is self-explanatory.Each line must not exceed 75 characters.Describe it for everyone, not just for you.You can add a tag in lower cases with a colon before the rest. ![]() You can use '&' instead of 'and' so the message gets shorter.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |