Tillbaka till blogg
Git workflow used in Taraba Tech

Git workflow used in Taraba Tech

Författare: Milomir Dragović 1 minute reading 21.10.2022.

1. Create a branch on GitLab.

2. git pull

3. git checkout

4. Add only files that make up a small and coherent change:

- git add

5. Start an editor to separate the commit message subject from the body:

- git commit

6. Update your feature branch with the latest changes from the master by interactive rebase:

- git rebase -i master

7. If you don’t have conflicts, skip this step. If you have conflicts, resolve them and continue rebase:

- git add

- git rebase --

8. Push your branch:

- git push

- If you change git history on your feature branch, you may need to use the -f or --force flag.

9. Make a Merge Request and assign a peer reviewer.

10. The Merge Request will be accepted, merged, and closed by a reviewer.

11. Remove your local feature branch if you're done:

- git branch -d

Clap if you like this post

(16)

Share with your friends

Related blog posts

Tillbaka till blogg