|
TrioCFD 1.9.8
TrioCFD documentation
|
This guide is meant to give you a basic understanding of the usage of git, and to give you all the tools you will need to properly use git for the development of TrioCFD.
The command to move between branches is
To check that this worked, you can use git status. The output should look like that:
To create a new branch, you have to use the command:
or (longer, two steps)
Once you do that, you will be on a new local branch. For now, this branch only exists in your own copy of the repository. If you only do this first step, the output of git status will be:
where there is no line about being up to date with origin.
In order to push your developments to the server, you need to create the branch on the remote repository. The easiest way to do this is with
This command directly creates a branch with the name <branch_name> on the distant repo (origin) and pushes your local branch there. After this, you will be able to save your work easily to the correct distant branch using simply git push.
You can check that this worked with git status, which should look like:
In summary, to create a branch, always use the 2 following commands:
Always use these two commands to create a branch, as this will ensure they are configured correctly.
You can create as many as you want/need, don't be afraid to create more (it doesn't take more space on git, there is no bad consequence). Just try to clean them once in a while.
See changed files:
Stage changed file:
Commit:
Type a commit message after the -m option or later when prompted.
Create a branch and set up push:
Delete distant branch: