Add git workflow

This commit is contained in:
PAlexanderFranklin 2024-03-11 16:48:47 -07:00
parent 8e2f9787c1
commit ddf3aee4c5

24
GITMERGE.md Normal file
View File

@ -0,0 +1,24 @@
## Merging a Branch:
`git checkout <to-merge>`
`git pull`
`git push`
`git checkout <merge-into>`
`git pull`
`git merge <to-merge>`
`git push`
`git tag archive/<to-merge>`
`git branch -d <to-merge>`
`git push --tags`
`git push -d origin <to-merge>`
`git remote prune origin`
## branch management
"develop" is the upstream branch. We will keep it clear of our own commits (unless we want to request that they are pulled upstream)
Here is the command to make a remote for the upstream to fetch new changes from into develop, which we can then merge into master:
`git remote add upstream https://github.com/frappe/erpnext.git`
"production" should rebase onto master to deploy
other branches should branch off of master and get merged back into it.