FlightGear Git: gitiquette
Jump to navigation Jump to search
Git is a version control system, used to store all files required to build FlightGear.
- Make sure all material is GPL-compatible and released as such.
- Rebase your repository before pushing. This prevents local merges from ending up in the repository. The fact that you merged your local branch with the development stream is of no interest to other developers and makes it particularly hard to understand the history of commits. If you have uncommited changes in your local directory, you can temporarily stash them, so git rebase will not complain:
git pull --rebase origin/master
git stash pop
- Compose a clear and concise log message to describe those changes and the reasons for them.
- Check git history before pushing. This allows you to read and double check your own changes a final time - and also check the history for local merge or funny duplication issues. The command is:
- to interactively rewrite/rebase the history and squash commits, use git rebase -i
- Use your own (real) name. You can set your git username with the following command:
git config --global user.name "Isaac Newton"
- Not all OS distinct capitals (eg. Switch.ac and switch.ac is seen as a single file on Windows) and not all OS can handle spaces. So always use unique file and directory names, without spaces.