Welcome Guest, Not a member yet? Register   Sign In
Understanding the Basics of GitHub: An Introduction for Beginners
#1

Understanding the Basics of GitHub: An Introduction for Beginners
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#2

(This post was last modified: 02-26-2025, 09:44 AM by captain-sensible.)

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
CMS CI4 A CMS system, runs out of the box written on top of CI4
Arch Book  CodeIgniter4 on Apache(pages 92-114) 
Reply
#3

@captain-sensible, Thank you for your feedback on this.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB