- 1 Minute to read
- Print
- DarkLight
- PDF
Git 102 - Basic Git commands
- 1 Minute to read
- Print
- DarkLight
- PDF
Git 102: Basic Git commands
We have a Git cheat sheet with more commands.
git clone [url]
git pull
git push [alias] [branch]
git switch
git status
git add [file/directory]
git commit -m "[descriptive message]"
Writing a good commit message
- Short (Under 60 characters)
- Descriptive (what did you do?)
- This will be part of the review
- Use imererative tense
- Add bypass cap
- vs "Added bypass cap"
Git 102: Merge conflicts
Merge conflicts happen when two different people make changes to files on either the same branch, or different branches. When they go to merge, there will be a merge conflict.
Avoiding merge conflicts
The best way to deal with merge conflicts is by prevention.
- Set up branch protection on main
- Separate schematics into multiple files
- Communicate when working on single files like the PCB
- Use LFS to lock files
Fixing merge conflicts
Although we're building a merge engine, for now, the best way to fix a merge conflict is to view the file changes in AllSpice and manually copy the changes to the new file.
Quick links and resources
- Todo before your onboarding
- learn.allspice.io
- AllSpice Crash Course
- AllSpice Support contact: Daniel Lindmark
- support@allspice.io or daniel@allspice.io
- Selected AllSpice Blogs:
Teams and role-based permissions
Visit our main article on teams