Git: Difference between revisions

From London Hackspace Wiki

131 bytes added ,  6 October 2018
m
no more babbage. updated with chomsky link.
mNo edit summary
m (no more babbage. updated with chomsky link.)
Line 1: Line 1:
For version control of the IRC bot scripts we use [http://en.wikipedia.org/wiki/Git_%28software%29 git]. To contribute to projects such as the scripts accessible via robonaut (the bot), you'll need an account on Babbage.  We use Github for all common projects at Hackspace.
For version control of the IRC bot scripts we use [http://en.wikipedia.org/wiki/Git_%28software%29 git]. To contribute to projects such as the scripts accessible via robonaut (the bot), setup your [[LDAP]] account and login to [[Equipment/Lamarr#Chomsky|Chomsky]].  We use Github for all common projects at Hackspace.


If you get stuck with any of these steps, please pop onto [[IRC]] for tips.
If you get stuck with any of these steps, please pop onto [[IRC]] for tips.
Line 7: Line 7:
== First time config ==
== First time config ==


Before you can start committing to the git repository, you need to configure your account on Babbage:
Before you can start committing to the git repository, you need to configure your account on [[Equipment/Lamarr#Chomsky|Chomsky]]:


  git config --global user.name "Jane Doe"
  git config --global user.name "Jane Doe"
Line 33: Line 33:
== For each project ==
== For each project ==


The best way to contribute to a project with distributed version control is to create your own copy on Babbage, and then push any changes back to Github once you're happy with them.
The best way to contribute to a project with distributed version control is to create your own copy on [[Equipment/Lamarr#Chomsky|Chomsky]], and then push any changes back to Github once you're happy with them.


To create a copy of the project:
To create a copy of the project:
Line 97: Line 97:
== If you've done it in place ==
== If you've done it in place ==


Now, you'll need to switch to the root user on babbage. As root:
Now, you'll need to switch to the root user on [[Equipment/Lamarr#Chomsky|Chomsky]]. As root:
  * '''git push''' #  This makes your changes available on the github repository, and thus available to others.
  * '''git push''' #  This makes your changes available on the github repository, and thus available to others.
-->
-->