0% found this document useful (0 votes)
6 views30 pages

Git-GitHub (1)

The document provides a detailed tutorial on using Git and GitHub, particularly in the context of Android Studio. It covers essential commands for creating repositories, committing changes, branching, merging, and updating code. Additionally, it highlights the workflow improvements that Git and GitHub offer for collaborative projects.

Uploaded by

Mennech
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)
6 views30 pages

Git-GitHub (1)

The document provides a detailed tutorial on using Git and GitHub, particularly in the context of Android Studio. It covers essential commands for creating repositories, committing changes, branching, merging, and updating code. Additionally, it highlights the workflow improvements that Git and GitHub offer for collaborative projects.

Uploaded by

Mennech
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/ 30

Git and GitHub

Pour un tutoriel détaillé


https://code.tutsplus.com/tutorials/working-with-git-in-
android-studio--cms-30514
Nous avons tous été ici ...
Problèmes

• plusieurs versions c o n flits


• plusieurs contributeurs

• ...
Git + Github
un meilleur flux de travail
git

git est un système de contrôle de


version distribué open source
conçu pour la rapidité et l'efficacité
installer git
http://git-s c m.c o m/do wn lo ads
Git in Android Studio
Git in Android Studio
Git in Android Studio
Git in Android Studio
Git in Android Studio
Git in Android Studio
Git in Android Studio
Git in Android Studio

1.Click this icon to refresh the status of your files in the current workplace.
2.This icon when clicked will commit your current changes.
3.Click this icon to roll back any selected changes.
4.Click this icon to create a new changelist.
5.Click this button to delete the selected changelist.
6.To make a changelist active, simply click this icon.
7.To move a selected file to another changelist, click this icon.
Git in Android Studio
Git in Android Studio
VCS > Git > Push

OR
VCS > Git > Pull

OR
Git Commands
• Creating New Repo
$ git init
• Committing
$ mkdir projet
• Branching/Merging
$ cd projet
• Cloning a Repo $ git init

• Updating
Git
• Creating New Repo
$ git init
• Committing
$ mkdir projet
• Branching/Merging
$ cd projet
• Cloning a Repo $ git init

• Updating
Git Commands
$ cd ..
$ touch testfile.md
• Creating New Repo

• Committing $ git status


• Branching/Merging

• Cloning a Repo
branch name
• Updating
staging area
Git Commands
• Creating New Repo
$ git add <filename>
• Committing $ git status

• Branching/Merging

• Cloning a Repo

• Updating
staging area
Git Commands
• Creating New Repo
$ git commit
• Committing $ git status

• Branching/Merging
your commit msg
• Cloning a Repo

• Updating
Git Commands
• Creating New Repo
$ git branch lis t of branc hes

• Committing

• Branching/Merging
$ git branch <branchname> new branc h

• Cloning a Repo
$ git checkout <branchname> s witc h
• Updating
Git Commands
• Creating New Repo
$ git merge <branchname> merge branc hes
• Committing

• Branching/Merging

• Cloning a Repo

• Updating
branch merge
GitHub
• Creating New Repo create an account
• Committing www.github.c o m/edu

• Branching/Merging

• Cloning a Repo

• Updating
GitHub
• Creating New Repo $ git clone <url> <name>
• Committing
https ://github.c o m/jblo mo /datamin ing290
• Branching/Merging

• Inspection

• Cloning a Repo

• Updating
GitHub
• Creating New Repo Fork a repo
• Committing

• Branching/Merging

• Inspection

• Cloning a Repo

• Updating
GitHub
• Creating New Repo

• Committing $ git fetch


• Branching/Merging $ git merge
• Inspection
$ git pull
• Cloning a Repo

• Updating $ git push

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