How to add files at github?

hiwilson

Joined: 2009-06-23
Posts: 10
Posted: Wed, 2009-07-01 16:20

I try to add a file on my fork of gallery3 in github via GIT bash console. However, it seems fail. Since I cannot find a way to delete this commit, please ignore it. http://github.com/hiwilson/gallery3/commit/767a2c62ae027e2e9025468c13d4fc5ff3bbfa3a

Does anybody know how can I add a file on my fork?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2009-07-13 02:28

This is a good read: http://git.or.cz/course/svn.html

Basically, to add a new file you create the file, do "git add" on it, edit it, then "git commit" it when you're done making changes and "git push" when you want to send it up to your repo.

Also, you can delete and recreate your fork on Github at any time without affecting anybody else. It's a totally safe playground for you.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!