Speakers
Quick Poll
You told me source code is available to play with but where I will get the source code.
Wait a second!
Github is one of the place on Internet where you can get source code of various famous open source projects like Django, vlc, AngularJS.
It is having infinite versions of the same file say testing.txt
It is a social network for nerds Developers.
Github allows you to work in a Team
$ git config --global user.name "YOUR NAME"
$ git config --global user.email "YOUR EMAIL ADDRESS"
Don't worry. The above set up is to be done only once.
Repository?
$ git clone https://github.com/Parbhat/sfd-github-workshop.git
It will create a folder in your computer with the same files on github.
Software Freedom Day is everywhere!
SFD is a yearly celebration for Software Freedom!
Every year there are thousands teams organizing
Software Freedom Day in different
countries and cities.
sfd.txt
Git will version control this file named sfd.txt to record the changes happening with file over time.
puri@puri-PC:~/sfd-github-workshop$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
sfd.txt
nothing added to commit but untracked files present (use "git add" to track)
puri@puri-PC:~/sfd-github-workshop$ git add sfd.txt
puri@puri-PC:~/sfd-github-workshop$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
new file: sfd.txt
puri@puri-PC:~/sfd-github-workshop$ git commit -m "Created sfd text file"
[master 4bd5ead] Created sfd text file
1 file changed, 5 insertions(+)
create mode 100644 sfd.txt
-m = commit message
puri@puri-PC:~/sfd-github-workshop$ git status
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
(use "git push" to publish your local commits)
nothing to commit, working directory clean
puri@puri-PC:~/sfd-github-workshop$ git push -u origin master
Username for 'https://github.com': parbhat
Password for 'https://parbhat@github.com':
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 414 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To https://github.com/Parbhat/sfd-github-workshop.git
ab4b147..4bd5ead master -> master
Branch master set up to track remote branch master from origin.
Check the status often.
Original Project
This is your copy of the project. Modify it as you like and follow the Git Mantra.
Remember the Git Mantra..
With Pull request you are asking the maintainer of project to add your changes to the main project.
Give your Pull request a name and description