I have a super slow connection right now, and I need to push a new branch into my company's git server. With SVN, I am able to commit/push files to a remote SVN server one at a time if I'd like. In the past, when I had a slow connection, I was able to upload a folder at a time and it worked great. I sure could use something similar in git.
Is it possible to push a git repository in sections?
412 views Asked by Byron Sommardahl At
2
There are 2 answers
0
Alex Wilson
On
If your branch consists of many small commits adding up to one large change, you might be able to effect this by pushing the commits up in stages. Perhaps create a new branch starting at the point at which your code diverges from that on the company server, then pull ranges of commits from your branch in stages and push after each range is pulled.
But pushing separate folders/files - I'm pretty certain that's not possible: it rather goes against git's requirement that a commit be an atomic entity.
Related Questions in GIT
- problem to push files on a repository git
- diff3 output in git conflict style, including mergeable hunks
- Git Not In Sync with Local Branch
- Setting up the version control of .dotfiles while the .config is connected to a forked repo
- How to fix overriding the main branch in Git?
- I can't add text to "Message" in VS Code when committing to Git
- How can i redirect pull request from main branch to another branch
- Xcode commits (possibly outside of any branch) disappeared, how to get them back?
- Git/TortoiseGit : how to apply ONLY the changes from ONE commit from branch A, to branch B?
- How can I reintroduce username an password on git using fedora?
- GIT SKIP EMPTY DIRECTORIES
- Git smudge run once per checkout or per commit?
- I can't find ~/.profile or ~/.bashrc in C:/Users/<user>/.ssh folder
- Set environment variable during push for GitHub Actions
- Android WebRTC compile
Related Questions in PUSH
- How to combine JSON objects and unnest array of arrays
- Almost empty git repo has huge size
- How to add the outout the random element from array and keep adding 1 by 1 in empty array?
- Unable to push changes via git behind Proxy with Heroku
- How to enable a PR originating from a forked repo to cause a GitHub workflow to push to a branch (gh-pages) in the original repo?
- Asset validation error on App Store upload
- Copy project files in path and projects in child subgroups
- Extra files included in push e.g. settings.py
- How to fix this issue with git push?
- Can images be blocked from being pushed to Harbor based on the number of artifacts for that image?
- How do I push a file into its subfolder in git repository?
- iOS - React-Native - Click on Push does not render the App
- Created a stack and the push() method is not working
- issue on pushing refs on Git repository
- Eclipse IDE can't Commit & Push to GitHub
Related Questions in COMMIT
- Xcode commits (possibly outside of any branch) disappeared, how to get them back?
- VS Code suggest me to upload all my user Data to github
- GitHub Commits Showing Someone Else's Name (Incorrect Name)
- problem delete row in postgresql with commit
- Remove specific commit in Visual Studio 2022
- not able to add previous commit into github tag using workflow
- Github Commit not working as it has in the past
- How to get latest commit to be pulled for a PR?
- How to retrieve the number of commits of a Git branch without downloading full commit history
- in express how to execute a function (like db commit) only after successful response is sent?
- Seeking Advice on Syntax Validation for Bitbucket UI Commits
- Eclipse IDE can't Commit & Push to GitHub
- COMMIT within a PostgreSQL function fails
- Git how to commit changes in a specific tracked directory only and do not include other tracked directories/files in this commit
- Can I make Xcode switch to Project navigator after a Commit completes?
Related Questions in REFSPEC
- Is it possible to clone a submodule in git without getting its master branch?
- can "remote branch", "remote-tracking branch" and "tracking branch" have different names?
- Git push command, error encountered -fatal: invalid refspec 'https://github.......git'
- Bitbucket Pull Request Jenkins Job
- Git push Refspecs: `refs/heads/*:refs/heads/origin` vs `refs/heads/*:refs/heads/*`
- Git track different branches for push and pull?
- Git push with full refspec not working
- git push new file to a bare repo failed: "error: src refspec master does not match any." Why?
- Push error to a remote git repository
- Git refspec for fetching everything from remote but keep local commits (LibGit2Sharp)
- src refspec ~ does not match any
- Is there a git command that can resolve an error: remote branch 'refs/heads/foo/bar' not found?
- 'fatal: remote part of refspec is not a valid name in ..' error when setting up Git
- Obtain the latest refspec on a Gerrit Change
- "git push" to Gerrit with a tracking branch
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
When you do a git-push(1), the manual says:
As a result, you should be able to push individual commits up to the remote by organizing them in chronological order, and then specifying each one in a detailed refspec. For example:
I tested this locally, and it seems to work as intended. Give it a try; if nothing else, it will get you pointed in the right direction.