]> rtime.felk.cvut.cz Git - hubacji1/oneflow.git/commitdiff
Add collaboration section to remote
authorJiri Hubacek <hubacji1@fel.cvut.cz>
Fri, 12 Oct 2018 12:43:08 +0000 (14:43 +0200)
committerJiri Hubacek <hubacji1@fel.cvut.cz>
Fri, 12 Oct 2018 12:43:08 +0000 (14:43 +0200)
remote.md

index 327cbb2061e8ec904154cc4587561b6a2cc0b709..2eba7dd67ce6e576fbe13d1a4b489d078dcfd372 100644 (file)
--- a/remote.md
+++ b/remote.md
@@ -16,6 +16,14 @@ forgotten (so the local changes looks like has been done just after copying
 repository from server is finished) it is preffered over `git pull` because the
 history is cleaner.
 
+# Collaboration
+Git can be used for collaboration even without branching. There are few rules
+that can ease the collaboration if keeped:
+- Git history on remote (shared) server must not be overwritten.
+- Every time before `git push` do `git pull --rebase`.
+  - And solve the conflicts.
+- Push to remote only clear, conflicts free git history.
+
 # Cheat sheet
 Use `git COMMAND --help` for showing the help!