Solved

Why can I not "push" my branch to DEV

Posted on 2016-08-24
4
51 Views
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.

Thanks!

What am I missing?
0
Comment
Question by:brucegust
  • 2
  • 2
4 Comments
 
LVL 10

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
0
 

Author Comment

by:brucegust
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!

Thanks!
0
 
LVL 10

Accepted Solution

by:
Jeffrey Dake earned 500 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.

https://help.github.com/articles/ignoring-files/

Hope this is more of what you are talking about.
0
 

Author Comment

by:brucegust
ID: 41773329
Perfect!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

To properly understand GitHub, let’s divide it into two words ‘Git’ and ‘Hub’. Git is basically a ‘Distribution Version Control’ (DVC) and ‘Source Code Management’ (SCM) system widely used by software programmers while Hub means the efficient centre…
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 reset a branch to a previous commit, and how to squash multiple commits into a single commit using the EGit plugin for Eclipse.
Explains the Git Index and the differences between a Remote, a Remote Tracking Branch, and a Local (or Tracking) branch.

747 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now