0% found this document useful (0 votes)
86 views6 pages

Mingw64: Clonar El Repositorio Creado en La Nube en La PC Loca / Conexión Remota

The document describes the steps taken to clone a GitHub repository hosted in the cloud onto a local PC. This involves navigating to the appropriate local directory, cloning the repository from the GitHub URL, then configuring the local repository to track changes from the original remote repository on GitHub. The user is able to fetch and merge changes from the remote into the local repository, and also push local commits and tags back up to the remote repository on GitHub.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
86 views6 pages

Mingw64: Clonar El Repositorio Creado en La Nube en La PC Loca / Conexión Remota

The document describes the steps taken to clone a GitHub repository hosted in the cloud onto a local PC. This involves navigating to the appropriate local directory, cloning the repository from the GitHub URL, then configuring the local repository to track changes from the original remote repository on GitHub. The user is able to fetch and merge changes from the remote into the local repository, and also push local commits and tags back up to the remote repository on GitHub.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Clonar el Repositorio creado en la nube en la PC loca / Conexión remota

Usuario@DESKTOP-PJFQ8MQ MINGW64 ~
$ cd ..

Usuario@DESKTOP-PJFQ8MQ MINGW64 /c/Users


$ cd d:

Usuario@DESKTOP-PJFQ8MQ MINGW64 /d
$ cd repositorio
bash: cd: repositorio: No such file or directory

Usuario@DESKTOP-PJFQ8MQ MINGW64 /d
$ cd alfredo

Usuario@DESKTOP-PJFQ8MQ MINGW64 /d/alfredo


$ ls
Repositorio/

Usuario@DESKTOP-PJFQ8MQ MINGW64 /d/alfredo


$ cd repositorio

Usuario@DESKTOP-PJFQ8MQ MINGW64 /d/alfredo/repositorio


(master)
$ cd

Usuario@DESKTOP-PJFQ8MQ MINGW64 ~
$ cd:
bash: cd:: command not found

Usuario@DESKTOP-PJFQ8MQ MINGW64 ~
$ cd ..

Usuario@DESKTOP-PJFQ8MQ MINGW64 /c/Users


$ cd d:

Usuario@DESKTOP-PJFQ8MQ MINGW64 /d
$ cd alfredo

Usuario@DESKTOP-PJFQ8MQ MINGW64 /d/alfredo


$ git clone https://github.com/apkf007/REPO_GITHUB.git}
Cloning into 'REPO_GITHUB.git}'...
fatal: unable to access
'https://github.com/apkf007/REPO_GITHUB.git}/': The requested
URL returned error: 400

Usuario@DESKTOP-PJFQ8MQ MINGW64 /d/alfredo


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

Usuario@DESKTOP-PJFQ8MQ MINGW64 /d/alfredo


$ clear

Usuario@DESKTOP-PJFQ8MQ MINGW64 /d/alfredo


$ ls
REPO_GITHUB/ Repositorio/

Usuario@DESKTOP-PJFQ8MQ MINGW64 /d/alfredo


$ cd repositorio

Usuario@DESKTOP-PJFQ8MQ MINGW64 /d/alfredo/repositorio


(master)
$ git remote add original
https://github.com/apkf007/REPO_GITHUB.git

Usuario@DESKTOP-PJFQ8MQ MINGW64 /d/alfredo/repositorio


(master)
$ git remote -v
original https://github.com/apkf007/REPO_GITHUB.git
(fetch)
original https://github.com/apkf007/REPO_GITHUB.git
(push)

Usuario@DESKTOP-PJFQ8MQ MINGW64 /d/alfredo/repositorio


(master)
$ git fetch original master
warning: no common commits
remote: Counting objects: 4, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 4 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (4/4), done.
From https://github.com/apkf007/REPO_GITHUB
* branch master -> FETCH_HEAD
* [new branch] master -> original/master

Usuario@DESKTOP-PJFQ8MQ MINGW64 /d/alfredo/repositorio


(master)
$ git merch original master --allow-unrelated-histories
git: 'merch' is not a git command. See 'git --help'.
The most similar commands are
fetch
merge

Usuario@DESKTOP-PJFQ8MQ MINGW64 /d/alfredo/repositorio


(master)
$ git merge original master --allow-unrelated-histories
merge: original - not something we can merge

Usuario@DESKTOP-PJFQ8MQ MINGW64 /d/alfredo/repositorio


(master)
$ git merge original/master --allow-unrelated-histories
Merge made by the 'recursive' strategy.
LICENSE | 201
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
README.md | 1 +
2 files changed, 202 insertions(+)
create mode 100644 LICENSE
create mode 100644 README.md

Usuario@DESKTOP-PJFQ8MQ MINGW64 /d/alfredo/repositorio


(master)
$ ^C

Usuario@DESKTOP-PJFQ8MQ MINGW64 /d/alfredo/repositorio


(master)
$ ls
ddl_tablas.sql dml_tablas.sql LICENSE README.md

Usuario@DESKTOP-PJFQ8MQ MINGW64 /d/alfredo/repositorio


(master)
$ gi pull original master
bash: gi: command not found

Usuario@DESKTOP-PJFQ8MQ MINGW64 /d/alfredo/repositorio


(master)
$ git pull original master
remote: Counting objects: 3, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), done.
From https://github.com/apkf007/REPO_GITHUB
* branch master -> FETCH_HEAD
ec57a9a..f65f6d6 master -> original/master
Merge made by the 'recursive' strategy.
dummy_sql | 2 ++
1 file changed, 2 insertions(+)
create mode 100644 dummy_sql

Usuario@DESKTOP-PJFQ8MQ MINGW64 /d/alfredo/repositorio


(master)
$ ls
ddl_tablas.sql dml_tablas.sql dummy_sql LICENSE README.md

Usuario@DESKTOP-PJFQ8MQ MINGW64 /d/alfredo/repositorio


(master)
$ ^C

Usuario@DESKTOP-PJFQ8MQ MINGW64 /d/alfredo/repositorio


(master)
$ clear

Usuario@DESKTOP-PJFQ8MQ MINGW64 /d/alfredo/repositorio


(master)
$ git branch -l
alterna
alterna_v2
* master

Usuario@DESKTOP-PJFQ8MQ MINGW64 /d/alfredo/repositorio


(master)
$ git tag -l
0.3
0.5
0.6
0.7
0.7.1

Usuario@DESKTOP-PJFQ8MQ MINGW64 /d/alfredo/repositorio


(master)
$ git push original master
Username for 'https://github.com': apkf007error: unable to
read askpass response from 'C:/Program
Files/Git/mingw64/libexec/git-core/git-gui--askpass'
Password for 'https://[email protected]':
remote: Invalid username or password.
fatal: Authentication failed for
'https://github.com/apkf007/REPO_GITHUB.git/'

Usuario@DESKTOP-PJFQ8MQ MINGW64 /d/alfredo/repositorio


(master)
$ git push original master
Username for 'https://github.com': apkf007
Enumerating objects: 21, done.
Counting objects: 100% (21/21), done.
Delta compression using up to 8 threads.
Compressing objects: 100% (15/15), done.
Writing objects: 100% (19/19), 2.03 KiB | 520.00 KiB/s, done.
Total 19 (delta 1), reused 0 (delta 0)
remote: Resolving deltas: 100% (1/1), done.
To https://github.com/apkf007/REPO_GITHUB.git
f65f6d6..b763ef7 master -> master

Usuario@DESKTOP-PJFQ8MQ MINGW64 /d/alfredo/repositorio


(master)
$ git push original master --tags
Username for 'https://github.com': apkf007
Total 0 (delta 0), reused 0 (delta 0)
To https://github.com/apkf007/REPO_GITHUB.git
* [new tag] 0.3 -> 0.3
* [new tag] 0.5 -> 0.5
* [new tag] 0.6 -> 0.6
* [new tag] 0.7 -> 0.7
* [new tag] 0.7.1 -> 0.7.1

Usuario@DESKTOP-PJFQ8MQ MINGW64 /d/alfredo/repositorio


(master)
$ git branch -l
alterna
alterna_v2
* master

Usuario@DESKTOP-PJFQ8MQ MINGW64 /d/alfredo/repositorio


(master)
$ git push original alterna
Username for 'https://github.com': apkf007
Total 0 (delta 0), reused 0 (delta 0)
To https://github.com/apkf007/REPO_GITHUB.git
* [new branch] alterna -> alterna

Usuario@DESKTOP-PJFQ8MQ MINGW64 /d/alfredo/repositorio


(master)
$ git push original alterna_v2
Username for 'https://github.com': apkf007
Total 0 (delta 0), reused 0 (delta 0)
To https://github.com/apkf007/REPO_GITHUB.git
* [new branch] alterna_v2 -> alterna_v2
Usuario@DESKTOP-PJFQ8MQ MINGW64 /d/alfredo/repositorio
(master)
$ ^C

You might also like