Re: GITeando en linux :D
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 git@github.com: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 git@github.com:aladedragon/ala-live.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'git@github.com: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 git@github.com:aladedragon/ala-live.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'git@github.com: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.
:)
El 11/6/15, Gonzalo Rivero <fishfromsalta@gmail.com> escribió:
> El día 11 de junio de 2015, 4:39, Ala de Dragón
> <aladedragon@gmail.com> 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 debian-user-spanish-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
> Archive:
> [🔎] CAPqjQdR7GyRCBpC8HmxiEgsyX_YOGB4W0E7SPV7XuPgAi4bBYg@mail.gmail.com">https://lists.debian.org/[🔎] CAPqjQdR7GyRCBpC8HmxiEgsyX_YOGB4W0E7SPV7XuPgAi4bBYg@mail.gmail.com
>
>
--
"El cielo es para los dragones
lo que el agua es para las ninfas"
Reply to: