0% found this document useful (0 votes)
16 views

Ceng105 Fall22 Git Github

The document discusses version control systems and provides details about Git. It explains what version control systems are and their purpose. The history and development of Git is covered. Details are given about using Git locally and with GitHub, including common commands. Recommended links for learning more about Git and version control are also provided.

Uploaded by

hi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

Ceng105 Fall22 Git Github

The document discusses version control systems and provides details about Git. It explains what version control systems are and their purpose. The history and development of Git is covered. Details are given about using Git locally and with GitHub, including common commands. Recommended links for learning more about Git and version control are also provided.

Uploaded by

hi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 21

Git

Efe ÇİFTCİ, November 2022


Çankaya University, Department of
Computer Engineering
What is Version Control System?

Version control systems are responsible for managing and keeping track of
changes on program source codes, their documentations, etc.

Users can store changed versions of files belonging to a project.

Each change in the system is identified as a “revision”.

At any time, these revisions can be revisited, compared, and restored.

Multiple people can access the tracked projects as team members.
What is Version Control System?
What is Version Control System?
What is Version Control System?
What is Version Control System?
What is Version Control System?
What is Version Control System?
History of Git

Prior to 2005, development and maintainance of
Linux kernel was handled with BitKeeper, a
proprietary source control system.

When the owning company of BitKeeper revoked
free-of-charge license from Linux developers, Linus
Torvalds and other kernel developers started
developing their own source control system.

Thus Git was born.
Using Git

Developers can start managing their projects using Git via multiple ways:
– By creating a local Git repository (i.e., on local computer),
– By building a local Git server (i.e., on a machine in the company),
– By using a public Git hosting service (e.g., GitHub).

Git can be used both from command line interface and GUI applications.
Using GitHub

Create a new github.com account,

Install Git on your computer:
– https://git-scm.com/downloads

Create a repository at GitHub,

Clone the repository into a directory on your computer,

Develop your project,

Push local changes to your online GitHub repository.
Using GitHub
Using GitHub
Using GitHub
Using GitHub

If you have created a new file under your project directory or modified existing
files:
git add

If you have made changes to your existing project files:
git commit

Each commit operation requires you to briefly describe the changes.

When you are ready to update your remote repository with all locally committed
changes:
git push
Using GitHub
Using GitHub
Common Git Commands
start a working area (see also: git help tutorial)
clone Clone a repository into a new directory
init Create an empty Git repository or reinitialize an existing one

work on the current change (see also: git help everyday)


add Add file contents to the index
mv Move or rename a file, a directory, or a symlink
restore Restore working tree files
rm Remove files from the working tree and from the index

examine the history and state (see also: git help revisions)
bisect Use binary search to find the commit that introduced a bug
diff Show changes between commits, commit and working tree, etc
grep Print lines matching a pattern
log Show commit logs
show Show various types of objects
status Show the working tree status
Common Git Commands
grow, mark and tweak your common history
branch List, create, or delete branches
commit Record changes to the repository
merge Join two or more development histories together
rebase Reapply commits on top of another base tip
reset Reset current HEAD to the specified state
switch Switch branches
tag Create, list, delete or verify a tag object signed with GPG

collaborate (see also: git help workflows)


fetch Download objects and refs from another repository
pull Fetch from and integrate with another repository or a local branch
push Update remote refs along with associated objects
Recommended Links

Git ●
Tutorials
https://git-scm.com/ https://githubtraining.github.io/train
ing-manual/

GitHub
https://github.com/ https://product.hubspot.com/blog/gi
t-and-github-tutorial-for-beginners

https://www.freecodecamp.org/news
/learn-the-basics-of-git-in-under-10-
minutes-da548267cc91/

And many more...


Thanks for
Listening!

This presentation has been created on


Free Operating System KDE neon
With
Free Office Suite LibreOffice.
“Free as in free speech, not free beer”

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy