Procedures (Git): verschil tussen versies

Uit De Vliegende Brigade
Naar navigatie springen Naar zoeken springen
Regel 7: Regel 7:
 
* Local files for this one repository: </code>/Git-repository</code> - Probably to be changed to something more practical and more part of my overall structure of files & folders. It doesn't have to be stored within Dropbox, but I also don't think there is an explicit reason for not doing so (stuff isn't more private than other stuff)
 
* Local files for this one repository: </code>/Git-repository</code> - Probably to be changed to something more practical and more part of my overall structure of files & folders. It doesn't have to be stored within Dropbox, but I also don't think there is an explicit reason for not doing so (stuff isn't more private than other stuff)
 
* Remote repository (if that's the correct name): Server ''blub8'' at <code>/usr/local/bin/</code>. More servers may be added later
 
* Remote repository (if that's the correct name): Server ''blub8'' at <code>/usr/local/bin/</code>. More servers may be added later
* For now, only 1 branch (''main''). Maybe later use subbranches for every Trello- or Notion card.
+
* For now, only 1 branch (''main''). Maybe later use subbranches for every Trello- or Notion card
 +
* ''SSoT'' (''Single Source of Truth''): The files on GitHub. Not the stuff on the server.
  
 
== Work on local files ==
 
== Work on local files ==

Versie van 24 feb 2023 11:46

How it works for me right now (2023.02).

Context

  • Git client: Sublime Merge
  • Only one repository
  • Local files for this one repository: /Git-repository - Probably to be changed to something more practical and more part of my overall structure of files & folders. It doesn't have to be stored within Dropbox, but I also don't think there is an explicit reason for not doing so (stuff isn't more private than other stuff)
  • Remote repository (if that's the correct name): Server blub8 at /usr/local/bin/. More servers may be added later
  • For now, only 1 branch (main). Maybe later use subbranches for every Trello- or Notion card
  • SSoT (Single Source of Truth): The files on GitHub. Not the stuff on the server.

Work on local files

Just work on the files in the local repository. Whenever a change is detected at the local repository, it is displayed in Sublime Merge - Very easy and usefull for controlling the error (or how Montessori called it exactly - Being able to check for errors yourself)

  • Edit files: Works as expected
  • Delete files: Works the same in Sublime Merge as for editing, but in the end, the file has not been deleted from the remote repository - Maybe it's done by purpose that way. I can live with that
  • Create new files: Works as expected.


Stage, commit, push

When ready to unleash a file upon the world, do these thinks, all within Sublime Merge: