This Blog

Syndication

Search

Go

Tags

Community

Archives

“Expand horizons,Change attitudes”-Git and Github Workshop

             “Expand horizons,Change attitudes”

With this very inspiring quotes, Mr.Santosh purbey,CTO of Bitsinnovation started “Git and Github Workshop” formally. It is two days workshop which is supported by NTA, Bits innovation and Kings college, specially organized to promote girls in IT field.

18320459_390232414705873_5925108206043630740_o                  

He also gave some important  tips such as, “You should give high priority to emails when you enter into business life”.After some other useful tips and tricks for business,he started going onto the topic.He asked how many of us know about Git and Github and then he moved on to the next question as,”Do anyone of you know about the power or importance of git?”.Some of us gave somehow satisfying answer.

Then he started explaining what ‘Git’ really is, along with some perfect examples :

Capture3

According to him,”Git is a free and open source distributed version control system that’s responsible for everything  related to GitHub that happens locally on your computer. It helps version control system by: updating new version of any solution, tracking all history and logs (logs include: what are the changes, who changed it, where the changes has been made and when ). It also supports working with development team for sharing of codes among team members at a same time. Along with these features it also supports files reversal or undo function to bring whole project to its earlier state.”

He,then steps towards the power of Git.Explaination he did,using following example which clarifies the power of git clearly was really awesome and user friendly simply it was easy to understand.

 

Capture

“Every individual can change it as per their need and desire”.

For Installation,He gave following information:

cap2

 

“If you are setting up Git for the first time, you need to update your name and email address”,he said.And also gave example example as given below:

config

According to him, “Without understanding the flow, it won’t be possible to perform any operation.For proper understanding of use and working mechanism of Git, we can refer to the following diagram”.

flow

After teaching us about the the working mechanism of Gits,he then moved into all the codes that we will be using during these two days workshop and also in our programming.Here are the codes given below along with a title for each.

1. GIT Initialize New Repository:

-Create New Repository

> git init

-Cloning New Repository

> git clone https://github.com/santoshpurbey/requests.git

-Checking Status

> git status

2. GIT Common Commands:

-Add New File

> git add <filename>

-Remove File

> git rm <filename>

-Commit changes

> git commit –m “comments “

-Show log

> git log

-Show commit

>git show

3.Undoings Things

-Unmodify Modified File

> git checkout -- <filename>

-Revert a Commit

> git rm <filename>

4.GIT Branch Commans

-Create New Branch

> git branch <branch-name>

-Swithch to New Branch

> git checkout <branch-name>

-Create New Branch and Switch to that Branch

> git checkout –b <branch-name>

-Delete Branch

> git branch –d <branch-name>

-Show Branch

> git branch

5.Remote Repository.

-Push to Romote

> git push origin <branch-name>

-Pull from Remote

> git pull origin <branch-name>

-Merge to current branch

> git merge origin <branch-name>

6.Merge conflicts

He also talked about the conflicts that can occur after merging and also about the way how he can solve those kinds of error.

 

After completing about Git,He switched into GitHub.He explain why do we need to use Github and why is it so important.

github

 

He also taught us how members of a team can share their code and update it.Group task was also given so that we could visualize the importance of Github.

Ending ceremony:

At the end of this two days workshop,each participants were given a certificate and also prize distribution ceremony was celebrated.Top # user in facebook,twitter and instagram were awarded with a gift hamper.Hardworking team i.e. organizing team were also awarded with certificates and gifts.

18320746_392384191157362_2010322342840721004_o

Git and Github Workshop” was ended with a group photo and with a inspiration of inspiring other.

Today is better than it was yesterday,

cause I learn something each day

to make my tomorrow

even more better”

Posted: 05-07-2017 9:00 PM by Shirisha Maharjan