|
I have a development branch, let's call it dev:code:
The changes have definitely been made, and I can see the differences when I check out to the other branch, but the changes aren't getting pushed for some reason. I'd - obviously - like to view my branch on GitHub, but git won't let me. What's up?
|
# ¿ Jan 20, 2012 22:39 |
|
|
# ¿ Jun 2, 2024 13:47 |
|
Mithaldu posted:If the branch of your local repo does not exist in the remote already, you need to specify it manually, i.e.:
|
# ¿ Jan 20, 2012 23:31 |
|
Why is it that, on Windows 7, `git diff` sometimes returns absolutely nothing? Makes it hard to see what's changed ... Second, is there really no way to prevent git from interpreting removed or added as completely new documents, where everything is -'d and +'d?
|
# ¿ Jan 28, 2012 14:53 |
|
Mithaldu posted:Never had that happen, and anyhow, you want to run git gui for that because it lets you easily get an overview on both your working directory and the index.
|
# ¿ Jan 28, 2012 15:16 |
|
I botched my git config info on one computer, so my git commits were perceived by GitHub as made by another user (an old one I used to have). As a result, I have another person associated with some of my commits, which annoys me. I want to do these commits over again, but with a new name, but what's the beast way to do this? git reset --soft <hash of the last working commit> git push -f Followed by redoing the commits? I have mixed experiences with doing soft resets where the original changes weren't staged, so I want to make sure I get it right.
|
# ¿ Feb 6, 2012 12:14 |
|
Suspicious Dish posted:Or just use git commit -C=HEAD --amend --reset-author. I believe there's a way to use git filter-branch but I'm not sure.
|
# ¿ Feb 6, 2012 13:18 |
|
Lysidas posted:There's no good reason to do this one commit at a time; it's a huge waste. Run code:
|
# ¿ Feb 6, 2012 21:02 |
|
Lysidas posted:Looks good to me. Now that I think of it, you may also want to set GIT_COMMITTER_NAME and GIT_COMMITTER_EMAIL:
|
# ¿ Feb 7, 2012 02:53 |
|
Looks like something went wrong when I tried to enter the command. I was running git bash on Windows (and not running it as an administrator).code:
|
# ¿ Feb 9, 2012 14:11 |
|
Lysidas posted:Run gitk --all & to view the history in your repository. (I can never get any work done without having gitk open -- it's tremendously useful to see the history that you're adding to). I can remove the folder and all, but it looks like something failed or just wasn't applied. The affected files seem to have branched out somehow: Maybe that's just a result of the different e-mail associated. Then again, it appears I have made the same mistake at an earlier point where it didn't branch out.
|
# ¿ Feb 9, 2012 16:18 |
|
Lysidas posted:Here's a good question: what did you expect to happen when you changed your email address in those commits? Why do you think it looks like something failed or wasn't applied? (Also, there are no "files" that have branched out, those are commits.) Is the `-f` option only for the push or for the re-entered command as well?
|
# ¿ Feb 10, 2012 00:34 |
|
Not sure it went as planned. I had forgotten to delete .git-rewrite and grant git bash full permissions. This is what I got:code:
code:
|
# ¿ Feb 10, 2012 01:28 |
|
I've made a branch, foo, with a bunch of changes from when I branched out from master a couple of weeks ago, so the difference between the two is likely to be huge. As a result, a lot of files will be affected, and I want to make sure I am able to scrutinize all the affected files to resolve any conflicts after the two are merged to one. On Windows or Ubuntu, what is the best way to view an intelligible representation of the changes and affected files, and what other precautions do you recommend, before I pull the trigger?
|
# ¿ Mar 4, 2012 17:57 |
|
enki42 posted:I think it's totally reasonable to review a branches changes before you merge - we do that with another developer literally every time we pull anything into our mainline branch. I did, however, go back to change some things on master, so the pull request on branch_name will be a bit misleading, right? Unlike git diff master..branch_name, I take it this will be a diff between the last master commit, before I branched to branch_name, right? In other words, if we say that I made the branch at master 1.0 and later updated master to 2.0, git diff master..branch_name will show the difference between: * master 2.0 and branch_name and the pull request will show the diff for: * master 1.0 and branch_name ufarn fucked around with this message at 04:05 on Mar 5, 2012 |
# ¿ Mar 5, 2012 04:03 |
|
gariig posted:I liked the Wired article that likened Github to Facebook GitHub is probably the biggest darling of the tech industry right now, and it's so popular that it's like a digital CV for people. It makes it so much easier to show people what you've done and can do, and the great design facilitates this even more.
|
# ¿ Mar 6, 2012 17:06 |
|
What does GitHub do when you do a merge pull request with conflicts? Does it help you solve them interactively, solve them by itself or stop you with an error message?
|
# ¿ Mar 8, 2012 17:12 |
|
Okay, I have merged my branch with master and resolved all conflicts in my local repo, but can it really be true that I am 40+ commits ahead of origin, just because my other branch was that many commits ahead of my master branch? Final question before I press the `git push` trigger.
|
# ¿ Mar 15, 2012 13:00 |
|
GitHub have launched a great interactive online tool to learn git: https://github.com/blog/1183-try-git-in-your-browser. This is probably the best way to learn people could have wished for. Dealing with unexpected errors, however, are probably 90% of really learning git. ufarn fucked around with this message at 23:12 on Jul 4, 2012 |
# ¿ Jul 4, 2012 22:39 |
|
In fact, you can put your git repo inside your Dropbox folder. It works horrendously across Windows/Ubuntu some of the time, but it still works quite well for me. I'm the kind of person who commits rarely - probably because I'm too much of a scrub to get it working in the first go.
|
# ¿ Jul 7, 2012 20:11 |
|
PiotrLegnica posted:Committing often is a good habit to develop, even if the code doesn't work at the moment. VCS is there to record changes, after all. You can always edit history before pushing, if broken commits in the log bother you. I'm currently using it for a project that might also go on my resumé, so I'm trying to present a slightly doctored impression of my skills. But generally, it's definitely the way to go.
|
# ¿ Jul 7, 2012 22:21 |
|
How do I bring the new ahead changes from my master branch to another branch? I assume it's some kind of fetch command?
|
# ¿ Jul 13, 2012 23:34 |
|
Suspicious Dish posted:What VCS are you using?
|
# ¿ Jul 14, 2012 02:05 |
|
Suspicious Dish posted:So you have two branches, and you want to merge them together? You can do that with a merge or a rebase.
|
# ¿ Jul 14, 2012 10:07 |
|
The git shell has started asking me for my username and password instead of my ssh password. Why is this? I tried to erase the .git folder and start over, but that didn't help. It's just this folder/project that doesn't seem to work for some reason.
|
# ¿ Jul 21, 2012 17:13 |
|
Suspicious Dish posted:Maybe because you checked out with the new fancy smart HTTPS instead of ssh?
|
# ¿ Jul 21, 2012 17:46 |
|
Does someone know Github's shorthand syntax for tables in Markdown? It's something like `::foo: bar" for a single row of two cells, but I can't for the life of me remember how it's done. And the documentation on it is non-existent.
|
# ¿ Aug 22, 2012 18:21 |
|
Has anyone using GitHub ever made a commit with a file that included some sensitive information with merges, issues, and whatnot pointing to it? I doubt anyone will ever see it, and it's nothing major, but I just wonder if it's even at all possible to purge files and information like that. Especially if it ever happens with an important password or some something such.
|
# ¿ Oct 10, 2012 12:14 |
|
Wow, that's great. Thanks a bunch.
|
# ¿ Oct 10, 2012 12:39 |
|
Suspicious Dish posted:Change your password. If you've pushed at all, especially in a popular repo (you said merges and issues point to it) consider it compromised.
|
# ¿ Oct 10, 2012 15:41 |
|
I just ran their commands and got this for people interested:Sh code:
Does the last line just mean that I haven't pushed to my remote master at GitHub (which is true)? Or did something fail?
|
# ¿ Oct 10, 2012 18:48 |
|
Submodule question. Is there a way to just add the files from a repo, and not the repo files in a folder? And is there a way to cherry-pick a single or few files from a repo instead of all of them?
|
# ¿ Nov 13, 2012 22:02 |
|
GitHub is pretty great, although the interface takes some getting used to. The real forté of GitHub is its Issues and Pull Request system, which creates a fantastic workflow, once you get the hang of it. Especially if you know how to use Milestones.
|
# ¿ Jan 18, 2013 15:48 |
|
Sailor_Spoon posted:I've heard good things about Atlassian's Stash. It's quite a bit cheaper than Github:Enterprise (which is excellent and we use at work).
|
# ¿ Jan 18, 2013 23:05 |
|
I'm playing around with .slugignore, and I'm running into a weird problem: when I used my filter in .gitignore, the files are properly ignored, but when I use them in .slugignore, nothing happens; the slug size and number of compressed files remain the same upon push as before I created the .slugignore file. .slugignore file here: http://pastebin.com/MnF3b9wt. This would lead me to think that .slugignore just doesn't work, but applying wildcard extension filters like *.png manages to bring the size and file number down, so it does work on some level; there is just something off. Folders deprecated/ and avatars/ are not at root level, but deeper down inside FWIW.
|
# ¿ Jan 30, 2013 12:29 |
|
I'm finding it really hard to do some testing for this. I'm doing a billion commits back and forth, but I'm not sure how to test against this locally. Regardless of what I do, I'm told that 109 static files were copied, but the slug varies in sizes - sometimes even if the .slugignore file is empty. This stuff drives me crazy.
|
# ¿ Jan 30, 2013 18:34 |
|
Pardot posted:I probably can't post the direct source code, but looking at it, it treats each line that isn't a comment as a shell glob, an d if the file exists, deletes it. So test your lines as shell globs locally.
|
# ¿ Jan 31, 2013 14:49 |
|
I've got a rather annoying conflict that prevents me from saving my work:quote:fatal: Reference has invalid format: 'refs/heads/master (laptop's conflicted copy 2013-04-16)' I use Dropbox to store my work, so some conflict has apparently emerged at some point - presumably when editing a single Markdown file. There are currently two ref heads, one "master", and one "master (conflict etc.)" file inside .git/. How do I resolve such a conflict?
|
# ¿ Apr 18, 2013 15:38 |
|
I am trying to make a submodule of a gist inside my GitHub repo, but I keep getting errors.code:
Not much I can do about the auto-tagging in the example code.
|
# ¿ May 26, 2013 14:43 |
|
I think it was due to some weird problem with the root repo: "fatal: You are on a branch yet to be born". Re-cloning the root repo and adding the submodule subsequently fixed it.
|
# ¿ May 26, 2013 18:44 |
|
|
# ¿ Jun 2, 2024 13:47 |
|
I get an error when trying to merge branches master and other-branch:Bash code:
EDIT: This is what .viminfo says under mark history: code:
ufarn fucked around with this message at 14:10 on Mar 1, 2014 |
# ¿ Mar 1, 2014 14:05 |