Skip to content

Latest commit

 

History

History
71 lines (49 loc) · 1.99 KB

git-tips.md

File metadata and controls

71 lines (49 loc) · 1.99 KB

Git Tips for Project 3

IMPORTANT NOTE:

Each team will have their own branch. Please check with your team lead before pushing any changes to the main branch.

This documentation is a good Git reference in order to maintain an Agile workflow between teams during this project.

Basic Branch Flow for Project 3

                   main
                    |
----------------------------------------
|                   |                   |
Team-1             Team-2               Team-3
|                   |                   |
|                   |                   |
[T1-Branches]       [T2-Branches]       [T3-Branches]

To merge a branch with the main branch

git fetch origin

  • this will update your machine to the remote repo

git merge origin/main

  • You can replace main with any branch name to merge FROM that branch

If there are any conflicts, just go into your editor and fix them, it'll point them out and the differences. Pick and choose what you want. Afterwards...

git add . 
git commit -m "Your message"
git push

Move between branches

git fetch origin
git checkout <yourbranchname>

I pushed something and I want it down! How?

git rm -r --cached <filename, filepath, or folder name>

Remember to use

git status
  • for more information on what you need to do.
git log --graph --all
  • to view all activity of every branch in the repository.

Other Helpful Git References:

Lastly...

If you run across any helpful resources or other troubleshooting tips, please share them here on this markdown file to share with others.