Why a Git submodule folder need to commit after pull from origin?
I have a git repository consist of several git submodules. If I want to update submodules of working repository, it involve:
- git pull origin master
- cd ..
- git add
- git commit -m "Updated submodule to latest HEAD"
When we pull the submodule updates, "git status" will show modified status for submodule folder. Thus it seems valid to perform git add and commit to make the modified status gone.
Why we need to commit the submodule folder of local working repository as above?
Shall we push the changes to origin after commit?
Imagine if we push the changes, other who pull will need to "git add" and "git commit" again. This seems like an infinite loop around.
If I modify a submodule, can I push the commit back to the submodule origin, or would that require a clone? If clone, can I store a clone inside another repository?
How do I un-submodule a git submodule (bring all the code back into the core) ? As in how should I, as in Best procedure ...
According to the documentation, git pull performs a git fetch then a git merge, however in that case performing git pull origin master should perform a git fetch origin master right? However, it does
How do I git pull something on a previous commit on a repository? I'm following a guide in which half of the code was outdated and the other half is not. So I need to send that one half back to its pr
I have a new team member who gets a Permission Error when trying to perform their initial git submodule update: [mrTeamMember@desktop application]$ git submodule update Initialized empty Git repositor
What is the difference between running git submodule update --remote vs cd <submodule directoy> git pull Assuming that the submodule was previously set to track some branch: git submodule ad
I have a git repo on my local and I push it to BitBucket. I have a deleted folder in my previous commit, which I now want to bring it back. On my local machine, I do git checkout COMMIT_ID path/to/del
I have setup a CloudFront origin pull server. It allows me to set a domain name, which I have. This works. But I don't want the whole domain to be the origin. I want mydomain.com/folder/subfolder to
I want to figure out why git submodule foreach command is not working for me. I have cloned a git repository which has several submodules. I wanted to init and update all submodules at once to pull do
I have an iOS project hosted on Bitbucket which uses MapBox-iOS-sdk which I incorporated as a git submodule. The commit I track is on a develop branch, not the release branch. Say, some times later wh
I've been using 'git pull origin' to check out updates to my friend's project, but I wonder if I should be using 'git pull remote' instead.
I've been using Git & Git-Svn for a year or so now and somehow just noticed that, after a dcommit, my commit history is preserved, but the timestamps aren't. In other words, each git commit entry
These are the sequence of steps I have performed: committed my changes in branch to local master (commit id dc9afg2k) git fetch origin master && git merge origin master git checkout master g
I'm trying to hack git to do backup for me. The data is so large relatively and I cannot afford a working copy and a git repo on any of my hard drives. So, I need to git add/commit to a bare repo from
I have a git submodule in my main git repo. As I understand it, the main repo stores a SHA value (somewhere...), pointing to the specific commit of the submodule that it is linked to. I went in to
I can't git push/pull to github from my corporate vpn: git push origin master ssh: connect to host github.com port 22: Connection timed out fatal: The remote end hung up unexpectedly I assume this is
I am using keyword expansion like the one described in the book Pro Git. However, after a commit one needs to do, for example, rm file git checkout file to have the correct keyword expansion in the w
I have a remote that is the same, or similar, to the rails project in my current directory. To sync the two, I do git init git remote add origin blah@blah git pull The problem is that some of the fil
I have a super-module Research that includes a submodule Simulator. When I clone Simulator repository, and do git log, I get this ~/Simulator$ git log commit abcd... Date: Feb 1....... ........ W
I was advised to commit all my changes before running git pull and merge. Does it make sense ? What if I run pull and merge before committing my changes and commit them after the merge?
I have a git submodule which is constantly showing modified in git status even though I never update it. # On branch master # Changes not staged for commit: # (use git add <file>... to updat
I am using Git and I have committed few files using git commit -a Later, I found that a file had mistakenly been added to the commit. How can I remove a file from the last commit?
I run following bash script in cronjob to update my web site #!/bin/bash cd /home/username/public_html git pull origin master This cronjob is run every 5 minutes, so if i commit changed to git repo,
I have both local changes and remote changes. Someone told me I must do push first, then pull. Any reason behind this?
when I do a git pull origin master from a branch the branch is updated NOT the master. In order to update the master I need to do a git checkout master and then call git pull origin master. Why
I'm trying to get just a folder from an external github repo to use in my project. I want my project setup to be like this: -my_project -submodule -code.py -MY_README -.git And I have the remote repo
when I do : git pull BranchName it tells me everything is up to date but I know that is not true. When I do: git pull origin BranchName then I get the files I was expecting. Is there an easy way to a
I've just started using gerrit and i want to know why we need to do git push gerrit HEAD:refs/for/master instead of doing git push origin master If i do git push origin master i get the error saying !
In the following scenario: Make commits A, B, C Pull, getting commits D, E Make more commits F, G, H, ... Realize that you need to tweak B Tweak B using git rebase -i and git commit --amend Now git
When I do git pull origin master, it does not seem to update the files in the folder of the git repository.
I have, for the last year, TouchJSON via a submodule. I no longer need to use the library and want to remove it but I am not sure if doing this: How do I remove a git submodule? will remove even the '
In svn you can link a repository to any folder in another svn repository. I'm wondering if there is a similar feature for git? Basically I want a git submodule inside my repository, but I want the sub
I'm trying to run git pull origin master on my production server, however it is failing with the following. From ssh://bitbucket.org/ala_arab/admnet * branch master -> FETCH_HEAD Auto-merging db/
We can push the head of a branch like below $ git push origin HEAD And, we can use @ for alias of HEAD. $ git show @ Then why does the below command gives me an error? $ git push origin @ fatal: re
I am using the method I found to pull --rebase by default when doing git pull: Now I want to make the 'git pull' - by default pull only the current branch: How do you get git to always pull from a spe
If you add a submodule in git, afaik it points to a certain commit in that submodule. Is there any way to see which commit it's actually pointing at? Without actually checking out the submodule.
I am testing the new git submodule add -b feature (after git 1.8.2), which creates sub-module that allegedly tracks a branch rather than a commit. I am using git version 1.8.4.msysgit.0. The branch-tr
I have made two commits in my git repository and push them to my git server the two commits are In first commit file A is committed In second commit file B is committed now on the other developmen
Why does the SHA-1 hash of my latest commit change even if I don't make any changes to the commit (message, files) after running git commit --amend? Say I run the following at the command line. cd ~/D
Possible Duplicate: git pull VS git fetch git rebase I see some git project recommended you to update the project via git fetch; git rebase origin master Are there any advantages in doing this, as
When handling pull requests on GitHub, often I want to merge in commits from a branch with no changes. However, I would like to commit something just after the merge. I don't want to git commit --amen
I am trying to add a git submodule to my project, but git keep telling me $ git submodule fatal: cannot describe 'dd650e8bb4762a8a7f69a6412b4765c9bb108778' What means fatal: cannot describe and how
I lost my app and skin folders from Magento after running git commands. Here is my order of git commands: git init git add app/* git add skin/* git remote add repulr git pull origin master # (repo h
I have a git repo we'll call RepoA. I forked RepoA to RepoB. Every pull request I make for RepoB contains every commit (even commits already merged into master, or commits from other people in other p
After making changes to files already tracked by git I usually do a: git commit -a -m a message describing what you did followed by git push origin master to commit and then push all changes to my
How do I discard all git commits that haven't been pushed and then force git to not commit anything in the data/ directory? I'm trying to force overwrite all changes to a project stored on github from
I have a project in git. It has a couple of submodules. Without going into the submodule and doing a git status or similar, is there a way to tell which commit, branch, and tag it the main project thi
Why should i rollback after failed commit? In case, if commit failed, a DB won't get changes anyway. So why should i call rollback this case?
I am new to GitHub, able to create a README textfile and commit that (from my local machine to github site) but now my problem is, i have one folder and i need to commit that folder to git hub, can an