Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
36 views4 pages

Guarda Git

The document shows the steps taken to initialize a Git repository and create branches and commits. It initializes an empty Git repository, adds and commits an initial a.txt file. It then creates a ramaA branch, adds and commits b.txt and c.txt files to it. The ramaA branch is merged into the master branch. Another ramaD branch is created, a d.txt file is added and committed to it, and then ramaD is merged into master.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views4 pages

Guarda Git

The document shows the steps taken to initialize a Git repository and create branches and commits. It initializes an empty Git repository, adds and commits an initial a.txt file. It then creates a ramaA branch, adds and commits b.txt and c.txt files to it. The ramaA branch is merged into the master branch. Another ramaD branch is created, a d.txt file is added and committed to it, and then ramaD is merged into master.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba

$ git init
Initialized empty Git repository in C:/ProyectosNode/GitPrueba/.git/

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (master)


$ git status
On branch master

No commits yet

Untracked files:
(use "git add <file>..." to include in what will be committed)
a.txt

nothing added to commit but untracked files present (use "git add" to track)

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (master)


$ git add.
git: 'add.' is not a git command. See 'git --help'.

The most similar command is


add

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (master)


$ git status
On branch master

No commits yet

Untracked files:
(use "git add <file>..." to include in what will be committed)
a.txt

nothing added to commit but untracked files present (use "git add" to track)

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (master)


$ git add .

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (master)


$ git status
On branch master

No commits yet

Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: a.txt

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (master)


$ git commit -m "se agrego A"
[master (root-commit) 877dac6] se agrego A
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 a.txt

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (master)


$ git status
On branch master
nothing to commit, working tree clean
Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (master)
$ git checkout -b ramaA
Switched to a new branch 'ramaA'

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (ramaA)


$ git branch
master
* ramaA

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (ramaA)


$ git status
On branch ramaA
Untracked files:
(use "git add <file>..." to include in what will be committed)
b.txt
c.txt

nothing added to commit but untracked files present (use "git add" to track)

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (ramaA)


$ git add .

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (ramaA)


$ git status
On branch ramaA
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
new file: b.txt
new file: c.txt

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (ramaA)


$ git commit -m "se agrego b y c"
[ramaA f15eb71] se agrego b y c
2 files changed, 0 insertions(+), 0 deletions(-)
create mode 100644 b.txt
create mode 100644 c.txt

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (ramaA)


$ git status
On branch ramaA
nothing to commit, working tree clean

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (ramaA)


$ git checkout master
Switched to branch 'master'

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (master)


$ git merge master ramaA
Updating 877dac6..f15eb71
Fast-forward
b.txt | 0
c.txt | 0
2 files changed, 0 insertions(+), 0 deletions(-)
create mode 100644 b.txt
create mode 100644 c.txt

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (master)


$ git status
On branch master
nothing to commit, working tree clean

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (master)


$ git status
On branch master
nothing to commit, working tree clean

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (master)


$ git branch
* master
ramaA

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (master)


$ git checkout -b ramaD
Switched to a new branch 'ramaD'

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (ramaD)


$ git status
On branch ramaD
Untracked files:
(use "git add <file>..." to include in what will be committed)
d.txt

nothing added to commit but untracked files present (use "git add" to track)

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (ramaD)


$ git add .

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (ramaD)


$ git status
On branch ramaD
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
new file: d.txt

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (ramaD)


$ git status
On branch ramaD
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
new file: d.txt

Changes not staged for commit:


(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: d.txt

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (ramaD)


$ git add .

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (ramaD)


$ git status
On branch ramaD
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
new file: d.txt

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (ramaD)


$ git commit -m "se agrego D"
[ramaD f311999] se agrego D
1 file changed, 1 insertion(+)
create mode 100644 d.txt

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (ramaD)


$ git status
On branch ramaD
nothing to commit, working tree clean

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (ramaD)


$ git checkout master
Switched to branch 'master'

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (master)


$ git status
On branch master
nothing to commit, working tree clean

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (master)


$ git merge master ramaD
Updating f15eb71..f311999
Fast-forward
d.txt | 1 +
1 file changed, 1 insertion(+)
create mode 100644 d.txt

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (master)


$ git status
On branch master
nothing to commit, working tree clean

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (master)


$ ^C

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (master)


$ ^C

Andres@DESKTOP-5QF8PS6 MINGW64 /c/ProyectosNode/GitPrueba (master)


$

You might also like