I have one version of a file at commit "#abc123" and the current version of the same file locally. I want to MERGE, NOT REVERT, the two versions for only this file. I read about some work arounds using "git cherry pick"…
I have a feature branch (branch1) that was approved but not yet merged into to master (have to wait for deployment CI to be fixed). I want to get started on another branch (branch2) which needs branch1’s changes in it. Would it make more…
In my gitlab project there are 3 main branches(develop, stage and master)
each time when updated code is pushed to develop branch, I have to merge it to stage branch and then merge it again to master branch manually.
it doesn’t seems an an…
Suppose branches look like this
master: A B C D*
my-branch: E F G H*
I want it to look like this
master: A B C D*
my-branch: E F G H*
I have the following scenario, I’m using Argo CD for deploying my kustomize config to a OKD Cluster, the config is hosted in a Git-Repo on the AzureDevOps 2020 (On premise). SSL Certs are present on all sides. (Successful trie…
I used git pull origin master to solve a conflict, now my files have been pulled from my master to my source branch, which is not what I wanted, I tried to delete them directly from Intelij, but my PR looks like this:
enter image descripti…
What does the –contains option do in git for-each-ref?
Does it only return a reference if its revlist has the commit specified after the –contains option on the command line? (e.g. Does git for-each-ref refs/heads –contains feature/test…
Before you mark as duplicate, I am referencing this similar question: Fatal: pathspec ‘file.txt’ did not match any files, GIT
However my issue seems slightly different from the one posted there.
I am a complete beginner with Git and GitHub. I have already written a complete program and have followed the instructions to upload/commit it to my GitHub page. It appears to have worked without any issues.
Later, as further practice, I edited the file containing the source code for my program. All I am attempting to do is to upload/commit this newly edited version of my program to my GitHub page. However when I attempt to enter the command:
git add <file_name>
I get the following message:
fatal: pathspec 'file_name' did not match any files
I thought it might be a syntax issue so I tried the “git add <file_name>” command both with and without the file extension “.txt” I also tried the add command using the “/” instead of the file extension since that’s how it appears in Git Bash when using the “git status” command. Nothing has worked.
Then I noticed that when I use the “dir” command the file names are represented using a different syntax. It appears that file names consisting of multiple words separated by spaces are represented with backslashes followed by a space and with no file extension, so my file: “Word Guess.txt” became “Word\ Guess” taking this into account I tried the “git add” command using this different file name representation and I wrote:
git add Word\ Guess
That gave me the following warning:
I don’t fully understand what the warning is saying but its obviously not the result I intended. Clearly I am missing something here. In the response given to the similar question that I referenced at the top of this post, the commenter said that the source of the problem was that the file did not exist and that you cannot add a file before creating it but in my case it seems obvious that the file exists because the program is fully functional and has already been successfully uploaded to my GitHub page. What am I not grasping?
I am having an issue with git.
I made a simple python file in a git initialized folder.
Then I added it and committed it.
Then I edited it, added another csv file to the folder, and committed it again.
The problem is, when I check out to t…
What I knew:
use "git stash push — fileName" to stash specific files (part of all files)
use "git stash save yourName" to specify your own name for the stash item.
But how can I push specific files with my own name?
I have some 24 files changed on branch A. None of these are committed. Some of these files with changes, say 18 are unstaged. And other 6 files are staged . I had to checkout to other branch B because of some other work.
I stashed these ch…
I want to save all the local changes. But there is a remote version on my GitHub. GitHub force me to pull before I can push. But when I pull the remote version, my local version become corrupted. I want to push my local version and overwri…
i have project with three branch in gitlab.
i added members to project as developers and each person has to work on a specific branch, but developer role access to another branch.
How can I limit each person to their own branch?
I am using GitHub Desktop on Windows and am trying to create a batch file that will execute every hour to auto commit and push.
I also want it to add all files in the repository and exclude those bigger than 99Mb in the .gitignore file.
when I try to run "git push heroku master", I get this error. This is my django project.
I have already run these commands
git add .
git commit -m "first commit"
heroku create votingsiteofsrm
I have many many small projects (think probably 250 or so) that do one specific thing and aren’t really large. Maybe just a few hundred lines of code at most. They are all individual git projects and I have one main project that is my AI a…
What in terminal editor would you recommend using/learning for python, git & remote terminal sessions over ssh? New to vim and nano. I know how to exit and save/exit vim and that’s about it.
I was looking at the documentation for creating a file in GitHub using PyGitHub: https://pygithub.readthedocs.io/en/latest/github_objects/Repository.html However, it creates a commit for each file.
In my use case, I will have several files…
Hello we are working in laravel project and using gitlab version control. However I have something I want to avoid because everytime someone makes a push, docker-compose.yml, composer.lock, composer.json change and make some problems. I wa…
few months ago I moved a project from one server to the other. I just noticed that the .git folder disappeared.
I want to connect that folder back again to the remote repo on GitHub.
I tried to follow this solution, but it doesn’t work in …