- This topic is empty.
-
AuthorPosts
-
June 28, 2013 at 6:22 pm #45944
nixnerd
ParticipantI’m a total n00b to Github. Just set an account up yesterday. I have no idea what a commit or a fork is. I haven’t even installed anything on my comp.
Can someone tell me where I should start with all this?
June 28, 2013 at 6:34 pm #140891TheDoc
MemberIf you’re on a Mac, I *absolutely* love Tower: http://www.git-tower.com/
Git is a bit difficult to wrap your head around at first, but it’s a fantastic workflow once you get used to it.
June 28, 2013 at 9:29 pm #140905__
Participant@Joe_Temp, if you run linux, I can’t imagine that git (command line) would fluster you. Get a cheat sheet and jump in.
Create a repo for your project on github.
Then, open a terminal on your computer:
# make a directory for your project. go there.
# (or, if you already have a project dir, just go there)
$ mkdir ~/my_project
$ cd ~/my_project# create a repo.
$ git init# create some files for your project. add them.
# (or, if the files already exist, just add them)
$ git add {filename}
# if you have a lot of existing files,
# you can add them all at once like
$ git add ./# “commit” is like making a “save point” for your repo.
# -a means “all”
# normally, you’ll want to commit changes individually
# (so you can selectively keep/rollback if you need to)
# -m means “message”. every commit needs a message.
$ git commit -a -m ‘first commit’# set up git to work with your repo on github
# {remote_name} is any “name” you like
# {your_username} is your github username
# {remote_name} is your github repo name
# (this is basically the same URL you use to view the repo,
# but with .git on the end.)
$ git remote add {remote_name} {https://github.com/{your_username}/{repo_name}.git}# push your local work to your repo on github
$ git pushmaster June 28, 2013 at 10:07 pm #140908Alen
Participant@traq covered the basics that will be enough to get you started. When you init the repo Git ignore file will be created as well. You will want to add paths that you don’t want to track.
June 28, 2013 at 11:43 pm #140913__
ParticipantIt’s likely that you will have one or more files in your _local_ repo that you don’t really need to have (or, really need to _not_ have) in your github repo. Good examples are local DB credentials, debugging functions or configs, localhost .htaccess files, and so forth.
You put those file names/paths into your .gitignore file, and (you guessed it) git will ignore them.
June 29, 2013 at 1:12 am #140925__
Participant. . .
kinda
June 29, 2013 at 11:49 am #140945Chris Coyier
KeymasterA sympathetic screencast: https://css-tricks.com/video-screencasts/101-lets-suck-at-github-together/
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.