Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Git勉強会
Search
Rikuto Sato
August 02, 2019
Education
0
200
Git勉強会
りくとが所属する研究室で、研究室メンバー向けに行ったGitの勉強会資料です。
Rikuto Sato
August 02, 2019
Tweet
Share
More Decks by Rikuto Sato
See All by Rikuto Sato
「テストコードのスタイルガイド」を作った理由
riku929hr
0
13
テストコードのガイドライン 〜作成から運用まで〜
riku929hr
9
1.7k
useReducerいつ使う?
riku929hr
1
5.2k
Other Decks in Education
See All in Education
諸外国の理科カリキュラムにおけるビッグアイデアの構造比較
arumakan
0
140
探究的な学び:Monaca Educationで学ぶプログラミングとちょっとした課題解決
asial_edu
0
260
Analysis and Validation - Lecture 4 - Information Visualisation (4019538FNR)
signer
PRO
0
2k
A Chatbot is Not a Search Engine (it's more like a roleplaying game)
dsalo
0
220
日本電子専門学校ネットワークセキュリティ科_学科紹介.pdf
ccyc
0
800
女子商アプリ開発の軌跡
asial_edu
0
270
AWS Well-Architected Labを活用してつよつよAWSエンジニアになろう!!! #jawsug_tokyo
masakiokuda
0
320
系統性を意識したプログラミング教育~ガチャを実装しよう~
asial_edu
0
280
SAT Bootcamp and Course
syedmahadd
0
170
Data Processing and Visualisation Frameworks - Lecture 6 - Information Visualisation (4019538FNR)
signer
PRO
1
2.3k
ハワイアン航空 ステータスへの道 #HAairstudy
maroon1st
0
130
オンラインゆっくり相談室ってなに?
ytapples613
PRO
0
390
Featured
See All Featured
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
4
500
Building Better People: How to give real-time feedback that sticks.
wjessup
367
19k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
31
4.8k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.4k
GitHub's CSS Performance
jonrohan
1030
460k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
Done Done
chrislema
183
16k
Optimizing for Happiness
mojombo
377
70k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
12
610
The World Runs on Bad Software
bkeepers
PRO
67
11k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
129
19k
Transcript
None
⚫ • • ⚫ ⚫ • ⚫ • ⚫
None
None
example_origin.cpp example_01.cpp example_02.cpp example_fin.cpp example… • • •
def factorial(n): return n*factorial(n-1) def factorial(n): if n < 1:
return 1 else: return n*factorial(n-1)
• • •
None
PS > choco install –y git https://git-scm.com/
⚫ ⚫ ⚫
$ brew install git $ git --version git version x.xx.x
$ sudo apt install –y git $ git --version git
version x.xx.x
⚫ ⚫ $ brew cask install vscode $ choco install
vscode -y
⚫ ⚫
None
None
None
$ git config --global user.name “<YourName>” $ git config --global
user.email “<YourEmail>”
[email protected]
None
None
$ mkdir git_training $ cd git_training
git_training/$ git init Initialized empty Git repository in C:/xxxx/git_training/.git/
• • • # Cache File # *.pyc * #
Logs *.csv # Static static/
$ git add < > $ git add . $
git status
$ git commit –m “ ”
# coding: utf-8 a = int(input(" a ¥n")) b =
int(input(" b ¥n")) print("a b " + str(a + b) + " ") [add] 2
None
$ git reflog $ git log
$ git add < > # # git add .
$ git commit –m “< >” $ git init
None
$ git commit --amend
$ git diff < > < >
None
None
$ git status
$ git revert HEAD
None
• • • • • •
None
None
None
None
None
None
None
$ git reset --soft HEAD^
$ git reset HEAD
$ git reset --hard HEAD^ $ git reset --hard HEAD
• •
•
None
None
• • • • • • • • • •
• • • •
$ git clone https://github.com/riku929hr/markdown_sample.git
None
• • • • • • • • • •
•
None