Estoy trabajando en una tarea en Coursera en la que tenemos que realizar un repository, clonar una versión local, hacer cambios y comprometernos y luego presionarlos.
Y hice todo eso. Pero cuando reviso mi URL repo, ¿no puedo ver la confirmación push que acabo de hacer? https://github.com/gcameron89777/ProgrammingAssignment2
Utilicé git config para establecer mis valores globales para nombre de usuario y correo electrónico. Entré en los files reales de la carpeta oculta .git en el directory en cuestión y miré el file de configuration:
url = https://github.com/gcameron89777/ProgrammingAssignment2.git
Ahora cuando visito la URL, no veo ninguna de mis confirmaciones. ¿No debería?
git commit -m "added functions makeCacheMatrix and cacheMatrix"
git push
Todo el time mi directory actual es el directory en cuestión.
¿No debería ver las confirmaciones recientes que acabo de hacer?
EDITAR: Aquí está el resultado del estado de git y el logging de git:
RMIOMP1310:ProgrammingAssignment2 gavin.cameron$ git status On branch master Your branch is up-to-date with 'origin/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: cachematrix.R Untracked files: (use "git add <file>..." to include in what will be committed) .DS_Store no changes added to commit (use "git add" and/or "git commit -a") MRMIOMP1310:ProgrammingAssignment2 gavin.cameron$ git log commit 7f657dd22ac20d22698c53b23f0057e1a12c09b7 Author: Roger D. Peng [amelia] <rdpeng@gmail.com> Date: Tue Apr 22 10:09:22 2014 -0400 More typos commit 873d883cbbc6de667b66349c96148203cdbbb8b1 Merge: 9b22d21 4f84c6f Author: Roger D. Peng <rdpeng@gmail.com> Date: Tue Apr 22 10:06:30 2014 -0400 Merge pull request #1 from gustavdelius/master Fixed some minor typos. commit 9b22d21e3671f46bf535624bbb769786840d05ba Author: Roger D. Peng [amelia] <rdpeng@gmail.com> Date: Mon Apr 21 12:35:04 2014 -0400 Clarify instructions about forking/cloning commit 4f84c6fc9c58cfcfeb788e74fbde63549ff20100 Author: Gustav Delius <gustav.delius@gmail.com> Date: Tue Apr 8 22:11:14 2014 +0100 Fixed some minor typos. commit e4eed4153bd237a2dd4532fc3f40ce0e22fd0cb7 Author: Roger D. Peng [amelia] <rdpeng@gmail.com> Date: Tue Jan 14 17:16:07 2014 -0500 A few more comments on what to do commit 05bf4b3c78e2c1d679f0c94ae0431a281a9a137d Author: Roger D. Peng [amelia] <rdpeng@gmail.com> Date: Tue Jan 14 17:10:40 2014 -0500 :
como viene del git status
:
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: cachematrix.R
no add
tus files a la confirmación, por lo que básicamente no cometiste nada.
hacer lo siguiente:
git add -A git commit -m "<commit message>" git push
si quieres entender mejor cómo funciona git, lee esto: http://git-scm.com/docs/gittutorial