Add git repository initialization (#69)
Add git repository setup step to git setup part of README. Fix indentation issue on `git add ` step
This commit is contained in:
parent
11a9829071
commit
26cf4be631
@ -74,6 +74,12 @@ There are a set of rules to keep in mind:
|
|||||||
### 1.2 Git workflow
|
### 1.2 Git workflow
|
||||||
Because of most of the reasons above, we use [Feature-branch-workflow](https://www.atlassian.com/git/tutorials/comparing-workflows#feature-branch-workflow) with [Interactive Rebasing](https://www.atlassian.com/git/tutorials/merging-vs-rebasing#the-golden-rule-of-rebasing) and some elements of [Gitflow](https://www.atlassian.com/git/tutorials/comparing-workflows#gitflow-workflow) (naming and having a develop branch). The main steps are as follow:
|
Because of most of the reasons above, we use [Feature-branch-workflow](https://www.atlassian.com/git/tutorials/comparing-workflows#feature-branch-workflow) with [Interactive Rebasing](https://www.atlassian.com/git/tutorials/merging-vs-rebasing#the-golden-rule-of-rebasing) and some elements of [Gitflow](https://www.atlassian.com/git/tutorials/comparing-workflows#gitflow-workflow) (naming and having a develop branch). The main steps are as follow:
|
||||||
|
|
||||||
|
* For a new project, initialize a git repository in the project directory. __For susequent features/changes this step should be ignored__.
|
||||||
|
```sh
|
||||||
|
cd <project directory>
|
||||||
|
git init
|
||||||
|
```
|
||||||
|
|
||||||
* Checkout a new feature/bug-fix branch
|
* Checkout a new feature/bug-fix branch
|
||||||
```sh
|
```sh
|
||||||
git checkout -b <branchname>
|
git checkout -b <branchname>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user