Buscar

Git Basic Workflow with GitHub

Faça como milhares de estudantes: teste grátis o Passei Direto

Esse e outros conteúdos desbloqueados

16 milhões de materiais de várias disciplinas

Impressão de materiais

Agora você pode testar o

Passei Direto grátis

Prévia do material em texto

Git Basic Workflow with GitHub
A quick introduction to Git with an hands on example starting with GitHub, making local changes and back to GitHub again.
Setup the Project Folder
Command Listing
pwd
mkdir projects
cd projects
pwd
Git Configuration
Command Listing
git version
git config --global user.name "Abe Lincoln"
git config --global user.email "mrabe@git.training"
git config --global --list
Copy the Repository (clone)
Command Listing
# paste in your GitHub HTTPS clone URL
git clone https://github.com/prezlincoln/github-demo.git
ls
cd github-demo
ls
git status
The First Commit
Command Listing
echo "Test Git Quick Start demo" >> start.txt
ls
cat start.txt
git status
git add start.txt
git status
git commit -m "Adding start text file"
git status
Publishing Changes to GitHub (push)
Command Listing
git push origin master

Outros materiais