Hola.
El 11/06/15 a las 08:32, Ala de Dragón escibió:
Bueno, lo que me gustaría es sincronizar github con mi repositorio
local. Vamos a ver:
Creo la cuenta github, añado mi llave ssh, creo un repositorio con la
rama master. lo inicializo por defecto con un readme, licencia y poco
mas.
clono el repositorio:
git clone [email protected]:aladedragon/ala-live.git
cambio el readme.
git status
On branch master
Untracked files:
(use "git add <file>..." to include in what will be committed)
ala-live/
nothing added to commit but untracked files present (use "git add" to track)
prepararo el "stage"
git add -A
git status
On branch master
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
new file: ala-live
y luego los confirmo.
git commit ala-live/
[master 36349f9] Comit test
1 file changed, 1 insertion(+)
create mode 160000 ala-live
git status
On branch master
nothing to commit, working directory clean
Hasta aqui todo bien. Ahora como diantes le mado este cambio a github?
git push origin master
To [email protected]:aladedragon/ala-live.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to '[email protected]:aladedragon/ala-live.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.
git push --set-upstream origin master
To [email protected]:aladedragon/ala-live.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to '[email protected]:aladedragon/ala-live.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.
Y ¿Por casualidad hiciste lo que te indica esa línea?
Porque tal vez allí te aclaren algo.
Saludos
:)
El 11/6/15, Gonzalo Rivero <[email protected]> escribió:
El día 11 de junio de 2015, 4:39, Ala de Dragón
<[email protected]> escribió:
Buenos dias :D
Últimamente vengo cotilleando acerca del proyecto devian-live.
Tienen un repositorio GIT con el trabajan.
La verdad es que nunca use GIT.
He buscado en la red, la wiki y me he abierto una cuenta en github.
Me gustaría charlar acerca de GIT, como funciona, como se usa y leerme
algún manual menos tosco el "man git".
Un saludo
:)
a mi me sirvió esto para mi propio proyecto:
https://guides.github.com/activities/hello-world/ (en inglés)
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact
[email protected]
Archive:
https://lists.debian.org/capqjqdr7gyrcbpc8hmxiegsyx_yogb4w0e7spv7xupgai4b...@mail.gmail.com
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: https://lists.debian.org/[email protected]