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