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 VLC, AngularJS, ReactJS etc.
• to undo errors / roll back to earlier versions of code
• to share a codebase between any no. of developers without creating conflicts
• to deploy changes from development to staging or production environments
It allows you to:-
It is a social network for 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/mbj36/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.
hp lapi@hp MINGW64 ~/Desktop/Github-Workshop (master)
$ git add .
$ 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
hp lapi@hp MINGW64 ~/Desktop/Github-Workshop (master)
$ git commit -m"Created Text File"
[master 1977c06] Created Text File
1 file changed, 5 insertions(+)
create mode 100644 sfd.txt
-m = commit message
hp lapi@hp MINGW64 ~/Desktop/Github-Workshop (master)
$ 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 tree clean
hp lapi@hp MINGW64 ~/Desktop/Github-Workshop (master)
$ git push origin master
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 402 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To https://github.com/mbj36/Github-Workshop.git
218a38a..1977c06 master -> master
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.