CodeIgniter Forums
Understanding the Basics of GitHub: An Introduction for Beginners - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: General (https://forum.codeigniter.com/forumdisplay.php?fid=1)
+--- Forum: Lounge (https://forum.codeigniter.com/forumdisplay.php?fid=3)
+--- Thread: Understanding the Basics of GitHub: An Introduction for Beginners (/showthread.php?tid=92521)



Understanding the Basics of GitHub: An Introduction for Beginners - InsiteFX - 02-26-2025

Understanding the Basics of GitHub: An Introduction for Beginners


RE: Understanding the Basics of GitHub: An Introduction for Beginners - captain-sensible - 02-26-2025

i will  have a look at that ; another small learning they added when dispensed with passwords , and then  not content with just tokens,    they have  ( marketing men must have been eating muesli  at the time )  "fine grain tokens" , "tokens" and i can see " organic grain tokens "  not far down the road lol


I guess a couple of things i find handy , the author omitted.

Immediately after a "commit"  add a tag for exmaple from a command line :


Code:
[andrew@darkstar ~]$ git tag -a v.1.4 -m " comment for tag" 

say you want to go back down the tree and work from some commit; its much easier to do via a tag eg

Code:
[andrew@darkstar CI4-CMS]$ git checkout v1.4

At that point i got :

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command.

So at  tag v1.4 i started a new branch :
Code:
[andrew@darkstar CI4-CMS]$ git switch -c myFork
//i then did a commit 
[andrew@darkstar CI4-CMS]$ git commit -a -m " forking from v1.4"
On branch myFork


a very handy command from a terminal is  :

Code:
gitk --all 


This is what that command brings up :[Image: gitk.png]


its easier visually to see i created a new branch in the tree


RE: Understanding the Basics of GitHub: An Introduction for Beginners - InsiteFX - 02-26-2025

@captain-sensible, Thank you for your feedback on this.