git-commit

How to see which commit a git submodule points at

孤者浪人 提交于 2020-08-21 05:48:46
问题 As far as I know, if you add a submodule in git then it points to a certain commit in that submodule. Is there any way to see which commit a submodule is pointing at without checking it out? 回答1: Sure... git ls-tree <commit>:<path to dir that has a submodule as a subdir> Example: git ls-tree HEAD:src/thirdparty Or just: git ls-tree -r HEAD to see everything. Submodules will show up as type commit (as opposed to the usual blob or tree ). 回答2: As the other answers explain, you can use two

Git push keeps writing commit with wrong username

浪子不回头ぞ 提交于 2020-08-10 06:24:28
问题 I've created a new project on a shared machine and the commits in my repositories are under the wrong username on Git. I've changed the credentials in the credentials manager in windows, I've followed this guide but the author has not changed, even if when I push it asks me username and password for pushing, and I insert mine. Still, on the repository the author of the commit is not me. I've also tried this solution but still doesn't work. What else can I try? UPDATE Steps: - git commit -m

Git push keeps writing commit with wrong username

百般思念 提交于 2020-08-10 06:24:04
问题 I've created a new project on a shared machine and the commits in my repositories are under the wrong username on Git. I've changed the credentials in the credentials manager in windows, I've followed this guide but the author has not changed, even if when I push it asks me username and password for pushing, and I insert mine. Still, on the repository the author of the commit is not me. I've also tried this solution but still doesn't work. What else can I try? UPDATE Steps: - git commit -m

Git, error: remote unpack failed: unable to create temporary object directory - By creating new Branch

好久不见. 提交于 2020-07-29 05:24:31
问题 Good Day. I Try to create a new Branch in my Repo. I made this: Git branch events Git Checkout events That worked. So I changed some files and made Git Status Git add --all Git Commit -m "Commit" That worked well but I tried to push it and that didn't work: Git push -u origin events This is the Error: Enumerating objects: 9, done. Counting objects: 100% (9/9), done. Delta compression using up to 4 threads. Compressing objects: 100% (5/5), done. Writing objects: 100% (5/5), 716 bytes | 716.00

Git, error: remote unpack failed: unable to create temporary object directory - By creating new Branch

南楼画角 提交于 2020-07-29 05:24:26
问题 Good Day. I Try to create a new Branch in my Repo. I made this: Git branch events Git Checkout events That worked. So I changed some files and made Git Status Git add --all Git Commit -m "Commit" That worked well but I tried to push it and that didn't work: Git push -u origin events This is the Error: Enumerating objects: 9, done. Counting objects: 100% (9/9), done. Delta compression using up to 4 threads. Compressing objects: 100% (5/5), done. Writing objects: 100% (5/5), 716 bytes | 716.00