Why can I not "push" my branch to DEV

Posted on 2016-08-24
Medium Priority
Last Modified: 2016-08-27
No doubt, someone who's more familiar with GIT can look at this and tell me what I'm missing.

All I want to do is push my current branch up to DEV. I've used this command, "git push -u pop_up" and I keep getting this error:

GIT screen
..."pop_up does not appear to be a proper repository."

And as an aside, when I go to checkout "development," I get a message that says, "Please commit your files or stash them before you switch branches." Is there anyway to override that? The "changes" they're referring to are not relevant so I don't care if they get overwritten.


What am I missing?
Question by:brucegust
  • 2
  • 2
LVL 11

Expert Comment

by:Jeffrey Dake
ID: 41769731
If you have changed files you need to either commit them or do a reset to get rid of your local changes.   There is really no point in pushing if you don't have committed changes, since the point of pushing is to push your committed changes up to the remote repository.  If you do a "gift status" you should be able to see the uncommitted files you have. If you want those up to your remote repository you will need to commit the files and then do a push.

Hope this helps

Author Comment

ID: 41770176
The problem, Jeff, is that I've committed the changes I need to push. But then if I go in and change a comment (not the code, just a comment) on another page that's not even relevant to the task I'm trying to accomplish, now I've got this dynamic that says I've got to commit these "changes," when they're not really changes at all.

I did figure out how to push what had been committed since I posted this question. I did "git push -u origin pop_up," so that's gold!

But if you could tell me if there's a way to let GIT that there's nothing that I need to commit beyond what I've already committed, when that kind of "warning" comes up, that would be great!

LVL 11

Accepted Solution

Jeffrey Dake earned 2000 total points
ID: 41771000
If these files are files that you never need to commit, you can use a gitignore file to permanently ignore any changes that you make to those files.  I often use that for local settings files.


Hope this is more of what you are talking about.

Author Comment

ID: 41773329

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
In this article you will learn how to create a free basic website on Bitbucket, a git service provider. Polymer creates dynamic HTML components, which allow more flexibility than static HTML. This tutorial uses Ubuntu Linux but can also be done on W…
How to create a Git repository using GitHub, and how to clone and checkout the repository using the EGit plugin for Eclipse.
How to reset a branch to a previous commit, and how to squash multiple commits into a single commit using the EGit plugin for Eclipse.

590 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question