Slide 1

Slide 1 text

No content

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

Adeen Shukla | @adeen-s Student Developer Pack by The best developer tools, free for students education.github.com/pack

Slide 4

Slide 4 text

Adeen Shukla | @adeen-s About Me ● Adeen Shukla ● Founder at codeIndore( ) ● Open-source contributor at Jolla, MerMobile ● / adeen-s ● / AdeenShukla ● [email protected] ● https://adeen.me

Slide 5

Slide 5 text

Adeen Shukla | @adeen-s About Me ● Harshil ● JavaScript Developer ● Open-soure contributor ● / harshil1712 ● / a_harshil1712 ● https://harshilagrawal.me

Slide 6

Slide 6 text

Adeen Shukla | @adeen-s About Me ● Jogendra Kumar ● iOS Developer ● Open-source contributor at FOSSASIA ● / jogendra ● / imjog24 ● [email protected] ● https://jogendra.github.io

Slide 7

Slide 7 text

Adeen Shukla | @adeen-s About Me ● Manas Mangaonkar ● / Pac23 ● / pa_c_23 ● / Pac23 ● [email protected] ● pac23.github.io

Slide 8

Slide 8 text

version control with git

Slide 9

Slide 9 text

why git?

Slide 10

Slide 10 text

Adeen Shukla | @adeen-s

Slide 11

Slide 11 text

history: Know exactly which files changed, who made those changes, and when those changes occured. backup: Ability to have different versions of the code in different places. collaboration: Collaborate easily with other people on the same codebase

Slide 12

Slide 12 text

workshop outline

Slide 13

Slide 13 text

my first git: repositories, staging, committing git good: branching, jumping around, merging git world: enter in the repository world git ideas: cool stuff to do with git open sourcing: the idea that it’s a changing.

Slide 14

Slide 14 text

$ terminal commands are typed with this font and color. before we begin...

Slide 15

Slide 15 text

don’t worry! there is always a cheat sheet!

Slide 16

Slide 16 text

my first git Create your shiny repo and your first commit.

Slide 17

Slide 17 text

what is a repository? A repository is like any other folder on your computer, it can contain any type of file and works in exactly the same way… Except: It has a hidden file named ".git" that stores the history of that folder

Slide 18

Slide 18 text

first, install git

Slide 19

Slide 19 text

second, start a new repository by $ git init

Slide 20

Slide 20 text

what are commits? snapshots of the state (i.e. code) of your repository

Slide 21

Slide 21 text

commit your work by using $ git add . $ git commit -m “”

Slide 22

Slide 22 text

more about commits Bc7fd9 “Add Oranges” a3ffde “Add apples” 9cd1ce “First commit, Add fruit.txt” Commits form a linked list structure which shows what you have done over time. Use git log to see your commit history.

Slide 23

Slide 23 text

staging changes Unstaged Changes Staged Changes Committed Changes git add git commit git reset git reset .

Slide 24

Slide 24 text

my first git: recap $ git init - converts a folder to a super smart git repository. $ git add - adds the files to the staging area. $ git commit - creates a snapshot of the repository. $ git reset - Undo your commit or unstage your files. $ git log - View your commit history. $ git status - See the current status of the repository

Slide 25

Slide 25 text

git good branching, context switching, merging

Slide 26

Slide 26 text

Bc7fd9 “Add oranges” a3ffde “Add apples” 9cd1ce “First commit, Add fruit.txt” commits

Slide 27

Slide 27 text

working with branches $ git branch - see a list of all available branches. $ git branch - create a new branch with the desired name, based on the current branch.

Slide 28

Slide 28 text

Bc7fd9 “Add oranges” a3ffde “Add apples” 9cd1ce “First commit, Add fruit.txt” master commits branches

Slide 29

Slide 29 text

working with HEAD $ git checkout - Redirect HEAD to the desired branch

Slide 30

Slide 30 text

Bc7fd9 “Add oranges” a3ffde “Add apples” 9cd1ce “First commit, Add fruit.txt” master commits branches HEAD HEAD somebranch

Slide 31

Slide 31 text

merging = combining commits $ git merge - creates a new commit that combines the last commit of the current HEAD branch with the last commit of the desired branch.

Slide 32

Slide 32 text

git good: recap... $ git branch - List all existing branches $ git branch - creates a new branch $ git checkout - jump to the branch with this name $ git merge --no-ff - merge the branch with this name into the current one.

Slide 33

Slide 33 text

git world publishing, updating and downloading

Slide 34

Slide 34 text

Let's take a look at

Slide 35

Slide 35 text

downloading / updating Repos $ git clone - downloads a copy of a remote git repository. $ git pull - download and merge new data from the remote $ git push - sends your version to the server.

Slide 36

Slide 36 text

git ideas a quick look at what other folks are doing on

Slide 37

Slide 37 text

programs and technology leadership at your school and much more...

Slide 38

Slide 38 text

Host your personal page for free on

Slide 39

Slide 39 text

#OpenSourcing Understand more about the movement that is changing the way you collaborate.

Slide 40

Slide 40 text

Collections on open and explore the vast world of repositories that exist. I'm sure you'll be surprised! Social Impact Learn to Code Organizations Open Journalism and much more...

Slide 41

Slide 41 text

and many others ... Communities on open and explore communities that do a change in the open source world. and much more...

Slide 42

Slide 42 text

Events on open and participate in events that happens around the world in prol of the open source. and much more... 24 Pull Requests Hacktoberfest GitHub Field Day

Slide 43

Slide 43 text

GitHub Education GitHub for Science GitHub for Government for X and much more...

Slide 44

Slide 44 text

time to start the workshop!

Slide 45

Slide 45 text

Doubts? Suggestions? Feedback? Your opinion is worth gold stickers!

Slide 46

Slide 46 text

Let's take a picture? Share on social networks and check @[handle] #githubeducation #githubcampusexperts

Slide 47

Slide 47 text

No content

Slide 48

Slide 48 text

Thank you! @adeen-s /in/adeen-s @adeen-s

Slide 49

Slide 49 text

No content