Anda di halaman 1dari 11

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)

$ git status
On branch master

No commits yet

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

new file: hola.txt.txt

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

programacion.docx

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)


$ git commit -m "Mi primera actualizcion"
[master (root-commit) 99ed7c5] Mi primera actualizcion
1 file changed, 1 insertion(+)
create mode 100644 hola.txt.txt

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)


$ git remoto add origen origen https://github.com/Familia1999238/Archivos-para-
POO.git
git: 'remoto' is not a git command. See 'git --help'.

The most similar command is


remote

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)


$ git remoto add subidos https://github.com/Familia1999238/Archivos-para-
POO.gitgit: 'remoto' is not a git command. See 'git --help'.

The most similar command is


remote

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)


$ git remoto add subidos origen https://github.com/Familia1999238/Archivos-para-
POO.git
git: 'remoto' is not a git command. See 'git --help'.

The most similar command is


remote

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)


$ git remoto add subidos subidos https://github.com/Familia1999238/Archivos-para-
POO.git
git: 'remoto' is not a git command. See 'git --help'.

The most similar command is


remote

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)


$ git remoto add subidos https://github.com/Familia1999238/Archivos-para-POO.git
git: 'remoto' is not a git command. See 'git --help'.

The most similar command is


remote

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)


$ pwd
/c/Users/adrian/desktop/Proyecto

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)


$ git remoto add subidos https://github.com/Familia1999238/Archivos-para-POO.git
git: 'remoto' is not a git command. See 'git --help'.
The most similar command is
remote
adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)
$ git remote add subidos https://github.com/Familia1999238/Archivos-para-POO.git

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)


$

git push -u origin mastersubidos 9 [sig] bash 912! sigpacket::process:


Suppressing signal 18 to win32 process (pid 6952)
4 [sig] sh 7524! sigpacket::process: Suppressing signal 18 to win32 process
(pid 4832)

git push -u subidos master

pwg
$ pwd
pwd
Logon failed, use ctrl+c to cancel basic credential prompt.
Username for 'https://github.com': remote: Anonymous access to
Familia1999238/Archivos-para-POO.git denied.
fatal: Authentication failed for 'https://github.com/Familia1999238/Archivos-
para-POO.git/'

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)


$

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)


$ git push -u subidos master
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Writing objects: 100% (3/3), 231 bytes | 77.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote:
remote: Create a pull request for 'master' on GitHub by visiting:
remote: https://github.com/Familia1999238/Archivos-para-POO/pull/new/master
remote:
To https://github.com/Familia1999238/Archivos-para-POO.git
* [new branch] master -> master
Branch 'master' set up to track remote branch 'master' from 'subidos'.

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)


$

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)


$

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)


$ git push -u originsubidos master master
fatal: 'originsubidos' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights


and the repository exists.

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)


$

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)


$ pwg
bash: pwg: command not found

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)


$ $ pwd
bash: $: command not found

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)


$ pwd
/c/Users/adrian/desktop/Proyecto
adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)
$
PRACTICA EN CASA (Subir archivos)
adrian@LAPTOP-Q9V0I10P MINGW64 ~
$ ls
'3D Objects'/
AppData/
'archivo nuevo2.lyx.emergency'
cd/
Contacts/
Desktop/
Documents/
Downloads/
Dropbox/
Favorites/
HP/
IntelGraphicsProfiles/
Links/
MicrosoftEdgeBackups/
Music/
NTUSER.DAT
ntuser.dat.LOG1
ntuser.dat.LOG2
NTUSER.DAT{ad973b68-5a71-11e8-b388-fbedef8ea9c5}.TM.blf
NTUSER.DAT{ad973b68-5a71-11e8-b388-
fbedef8ea9c5}.TMContainer00000000000000000001.regtrans-ms
NTUSER.DAT{ad973b68-5a71-11e8-b388-
fbedef8ea9c5}.TMContainer00000000000000000002.regtrans-ms
ntuser.ini
OneDrive/
Pictures/
'Saved Games'/
Searches/
Videos/

adrian@LAPTOP-Q9V0I10P MINGW64 ~
$ pwd
/c/Users/adrian

adrian@LAPTOP-Q9V0I10P MINGW64 ~
$ cd desktop

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop


$ ls
'~$ABAJO DE LEGISLACION MILITAR PEPA.doc'
'~WRL0092.tmp'
'Bryan Defaz'/
'casa Familia defaz cordova 2.dwg'
'casa Familia defaz cordova.dwg'
'codeblocks - Acceso directo.lnk'*
'CyberLink Power Media Player 14.lnk'*
'CyberLink PowerDirector.lnk'*
'Derivada fisica'/
desktop.ini
Dropbox.lnk*
EDO.txt
EJEMPLO/
'Excel 2013.lnk'*
'foto de perfil.jpeg'
Graficadora.lnk*
images.jpg
IniciarCurriculum.lnk*
InteractivePhysics2005.lnk*
Logo_ESPE.png
'matlab - Acceso directo.lnk'*
'mcuv 2018.docx'
'Microsoft Edge.lnk'*
'PARTE FRONTAL.doc'
'PowerPoint 2013.lnk'*
'PRESUPUESTO AVERIGUAR FERRETERIA.xls'
'PRESUPUESTO CASA HUAQUILLAS.xls'
Proyecto/
Universidad/
WhatsApp.lnk*
'Word 2013.lnk'*

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop


$ cd Proyecto

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)


$ ls
comandos.docx hola.txt.txt procedimientos.docx programacion.docx subidos/

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)


$ git status
On branch master
Your branch is up to date with 'subidos/master'.

Changes not staged for commit:


(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)

modified: hola.txt.txt

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

comandos.docx
procedimientos.docx
programacion.docx

no changes added to commit (use "git add" and/or "git commit -a")

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)


$ ^C

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)


$ git add hola.txt.txt

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)


$ git add comandos.docx

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)


$ git add programacion.docx

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)


$ git status
On branch master
Your branch is up to date with 'subidos/master'.

Changes to be committed:
(use "git reset HEAD <file>..." to unstage)

new file: comandos.docx


modified: hola.txt.txt
new file: programacion.docx

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

procedimientos.docx

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)


$ git commit -m "Mi segunda actualizacion"
[master 935f02e] Mi segunda actualizacion
3 files changed, 1 insertion(+)
create mode 100644 comandos.docx
create mode 100644 programacion.docx

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)


$ pwd
/c/Users/adrian/desktop/Proyecto
adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)
$ git subidos https://github.com/Familia1999238/Archivos-para-POO.git
fatal: remote subidos already exists.

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)


$ git remote add subidos2 https://github.com/Familia1999238/Archivos-para-POO.git

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)


$ git push -u subidos2 master

Enumerating objects: 7, done.


Counting objects: 100% (7/7), done.
Delta compression using up to 4 threads
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 45.61 KiB | 5.07 MiB/s, done.
Total 5 (delta 0), reused 0 (delta 0)
To https://github.com/Familia1999238/Archivos-para-POO.git
99ed7c5..935f02e master -> master
Branch 'master' set up to track remote branch 'master' from 'subidos2'.

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)


$

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)


$ ^C

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)


$ ^C

adrian@LAPTOP-Q9V0I10P MINGW64 ~/desktop/Proyecto (master)


$

2 PRACTICA

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado


$ pwd
/c/Users/adrian/Desktop/Graduado

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado


$ git clone https://github.com/dego11/POO2.git
Cloning into 'POO2'...
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), done.

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado


$ cd POO2

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)


$ pwd
/c/Users/adrian/Desktop/Graduado/POO2

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)


$ git status
On branch master
Your branch is up to date with 'origin/master'.

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

Defaz.txt

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

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)


$ git add Defaz.txt
adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)
$ git status
On branch master
Your branch is up to date with 'origin/master'.

Changes to be committed:
(use "git reset HEAD <file>..." to unstage)

new file: Defaz.txt

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)


$ git commit -m "Defaz Cordova"
[master 8c9750a] Defaz Cordova
1 file changed, 1 insertion(+)
create mode 100644 Defaz.txt

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)


$ git push

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)


$

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)


$

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)


$ git pull
remote: Enumerating objects: 9, done.
remote: Counting objects: 100% (9/9), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 8 (delta 2), reused 7 (delta 1), pack-reused 0
Unpacking objects: 100% (8/8), done.
From https://github.com/dego11/POO2
a44c627..77843c1 master -> origin/master
Merge made by the 'recursive' strategy.
andres.txt | 1 +
resistencias.doc | Bin 0 -> 94720 bytes
2 files changed, 1 insertion(+)
create mode 100644 andres.txt
create mode 100644 resistencias.doc

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)


$ git push
fatal: unable to access 'https://github.com/dego11/POO2.git/': Could not resolve
host: github.com

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)


$ ^C

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)


$ git remote add Defaz https://github.com/dego11/POO2.git

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)


$ git push -u Defaz master
To https://github.com/dego11/POO2.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/dego11/POO2.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)


$ git remote add Defaz.txt https://github.com/dego11/POO2.git

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)


$ git push -u Defaz.txt master
fatal: TaskCanceledException encountered.
Se cancel▒ una tarea.
Username for 'https://github.com': Familia1999238
To https://github.com/dego11/POO2.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/dego11/POO2.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)


$ git pull
remote: Enumerating objects: 61, done.
remote: Counting objects: 100% (60/60), done.
remote: Compressing objects: 100% (35/35), done.
remote: Total 56 (delta 18), reused 45 (delta 12), pack-reused 0
Unpacking objects: 100% (56/56), done.
From https://github.com/dego11/POO2
77843c1..9c93a1e master -> origin/master
Merge made by the 'recursive' strategy.
Diego.txt | 1 +
Luke2211.txt | 2 ++
andres.txt | 3 ++-
hola a todos soy juan miguel.txt | 1 +
hola.txt | 31 +++++++++++++++++++++++++++++++
milton.txt | 5 +++++
progra.txt | 0
7 files changed, 42 insertions(+), 1 deletion(-)
create mode 100644 Diego.txt
create mode 100644 Luke2211.txt
create mode 100644 hola a todos soy juan miguel.txt
create mode 100644 hola.txt
create mode 100644 milton.txt
create mode 100644 progra.txt

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)


$ git push
To https://github.com/dego11/POO2.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/dego11/POO2.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)


$ git pull
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 3 (delta 1), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), done.
From https://github.com/dego11/POO2
9c93a1e..7472f8e master -> origin/master
Merge made by the 'recursive' strategy.
hola a todos soy juan miguel.txt | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)


$ git push
To https://github.com/dego11/POO2.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/dego11/POO2.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)


$ git remote add Defaz.txt https://github.com/dego11/POO2.git
fatal: remote Defaz.txt already exists.
adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)
$ git commit -m "Segunda actualizacion"
On branch master
Your branch is ahead of 'origin/master' by 4 commits.
(use "git push" to publish your local commits)

nothing to commit, working tree clean

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)


$ git push -u Defaz.txt master
To https://github.com/dego11/POO2.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/dego11/POO2.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)


$ git push

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)


$ git pull
remote: Enumerating objects: 45, done.
remote: Counting objects: 100% (37/37), done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 27 (delta 10), reused 22 (delta 7), pack-reused 0
Unpacking objects: 100% (27/27), done.
From https://github.com/dego11/POO2
7472f8e..23fefbb master -> origin/master
Merge made by the 'recursive' strategy.
Luke2211.txt | 3 ++-
hola a todos soy juan miguel.txt | 2 +-
paul/paulguano.txt | 1 +
paulguano.txt | 1 +
progra.txt | 1 +
5 files changed, 6 insertions(+), 2 deletions(-)
create mode 100644 paul/paulguano.txt
create mode 100644 paulguano.txt

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)


$ git remote add Defaz.txt https://github.com/dego11/POO2.git
fatal: remote Defaz.txt already exists.

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)


$ git status
On branch master
Your branch is ahead of 'origin/master' by 5 commits.
(use "git push" to publish your local commits)

Changes not staged for commit:


(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)

modified: Defaz.txt

no changes added to commit (use "git add" and/or "git commit -a")

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)


$ git add Defaz.txt

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)


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

The most similar command is


remote
adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)
$ git pull
remote: Enumerating objects: 13, done.
remote: Counting objects: 100% (13/13), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 9 (delta 3), reused 9 (delta 3), pack-reused 0
Unpacking objects: 100% (9/9), done.
From https://github.com/dego11/POO2
23fefbb..f7289a6 master -> origin/master
error: Your local changes to the following files would be overwritten by merge:
Defaz.txt

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)


$ git push
To https://github.com/dego11/POO2.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/dego11/POO2.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)


$ git push

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)


$ git pull
remote: Enumerating objects: 21, done.
remote: Counting objects: 100% (17/17), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 12 (delta 5), reused 11 (delta 4), pack-reused 0
Unpacking objects: 100% (12/12), done.
From https://github.com/dego11/POO2
f7289a6..cf2714b master -> origin/master
error: Your local changes to the following files would be overwritten by merge:
Defaz.txt

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)


$ pwd
/c/Users/adrian/Desktop/Graduado/POO2

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)


$ git status
On branch master
Your branch and 'origin/master' have diverged,
and have 5 and 9 different commits each, respectively.
(use "git pull" to merge the remote branch into yours)

Changes to be committed:
(use "git reset HEAD <file>..." to unstage)

modified: Defaz.txt

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)


$ git remote add Defaz.txt
usage: git remote add [<options>] <name> <url>

-f, --fetch fetch the remote branches


--tags import all tags and associated objects when fetching
or do not fetch any tag at all (--no-tags)
-t, --track <branch> branch(es) to track
-m, --master <branch>
master branch
--mirror[=(push|fetch)]
set up remote as a mirror to push to or fetch from

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)


$ git remote add Defaz.txt https://github.com/dego11/POO2.git
fatal: remote Defaz.txt already exists.
adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)
$ git push
To https://github.com/dego11/POO2.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/dego11/POO2.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)


$ ^C

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/Graduado/POO2 (master)

Deber subir archivos paradigma


adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/DeberPOO
$ pwd
/c/Users/adrian/Desktop/DeberPOO

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/DeberPOO


$ git clone https://github.com/npjacho/Tarea.git
Cloning into 'Tarea'...
remote: Enumerating objects: 21, done.
remote: Counting objects: 100% (21/21), done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 21 (delta 3), reused 12 (delta 2), pack-reused 0
Unpacking objects: 100% (21/21), done.

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/DeberPOO


$ cd Tarea

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/DeberPOO/Tarea (master)


$ pwd
/c/Users/adrian/Desktop/DeberPOO/Tarea

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/DeberPOO/Tarea (master)


$ git status
On branch master
Your branch is up to date with 'origin/master'.

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

DefazDeber.txt

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

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/DeberPOO/Tarea (master)


$ git add DefazDeber.txt

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/DeberPOO/Tarea (master)


$ git status
On branch master
Your branch is up to date with 'origin/master'.

Changes to be committed:
(use "git reset HEAD <file>..." to unstage)

new file: DefazDeber.txt

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/DeberPOO/Tarea (master)


$ git commit -m"Primera actualizacion"
[master aae6505] Primera actualizacion
1 file changed, 17 insertions(+)
create mode 100644 DefazDeber.txt

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/DeberPOO/Tarea (master)


$ git push
To https://github.com/npjacho/Tarea.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/npjacho/Tarea.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/DeberPOO/Tarea (master)


$ git pull
remote: Enumerating objects: 7, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 6 (delta 3), reused 2 (delta 1), pack-reused 0
Unpacking objects: 100% (6/6), done.
From https://github.com/npjacho/Tarea
0818b75..173b813 master -> origin/master
Merge made by the 'recursive' strategy.
AndresIllescas.txt | 3 +++
1 file changed, 3 insertions(+)
create mode 100644 AndresIllescas.txt

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/DeberPOO/Tarea (master)


$ git push
Enumerating objects: 7, done.
Counting objects: 100% (7/7), done.
Delta compression using up to 4 threads
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 968 bytes | 242.00 KiB/s, done.
Total 5 (delta 2), reused 0 (delta 0)
remote: Resolving deltas: 100% (2/2), completed with 1 local object.
To https://github.com/npjacho/Tarea.git
173b813..944e81b master -> master

adrian@LAPTOP-Q9V0I10P MINGW64 ~/Desktop/DeberPOO/Tarea (master)


$ git pull
Already up to date.

Anda mungkin juga menyukai