I have created an application, and I want to commit it to GitHub as as soon as I implement a new option. What I have noticed is that when I use the commit option under source control in Xcode,
some commits appear in the GitHub website, while others don't, following is a clarification
The following figure shows the commits that appear in Xcode and the next one shows the commits appearing in the GitHub website. As you can notice "Added the Login with Facebook button" commit is missing, and any commit that I try to do after this one does not appear. What is the problem?
EDIT: What I have noticed is that I have two working copies of the same project. I doubt that I have created both, where the first copy has the remote GitHub link specified to it, while the other does not. I have tried to add the GitHub link to the second, but it creates more confusion than ever.
Related
I've been using the automatic links between commits and WI in TFS by writing #id in the commit message.
However, it stopped working for the entire collection, not only for a single project.
All the projects have checked the "Automatically create links for work items mentioned in a commit comment."
I´m really lost and I don´t know how to fix it.
Thank you very much for your ideas and support.
You need to check if the work item exists and you have the permission to view this work item (you can see it on your project portal) when you tried to link it to a commit.
When you make a commit on your local repo. You need to push your commit to the tfs server.
This option Automatically create links for work items mentioned in a commit comment. is set on repository level. You can check if the this option is checked for the repositories.
If above are all good, you can try unchecking the option Automatically create links for work items mentioned in a commit comment and save, then check this option and save again.
currently building a project clone and push all the changes to my github account step by step.
And i always used to see 'Twitter.xcodeproj/project.pbxproj' checked together with modified .swift files.
However, i don't see it now. I've reopened and did some additional changes to the code, but still nothing.
Is that ok, if it's not pushed?
And how do i get it back to normal if it's not?
The list you are looking at is generated by git status. Well, git status does not include any files that didn't change. So you should not expect to see project.pbxproj in the list unless you did something that would change it (like making a new code file and adding it to your project). Merely editing your existing code wouldn't change it, so it doesn't appear.
(In a way, this is a case of the classic confusion as to what git status means. Beginners often think that it's a list of your files, or a list of the files that will go into this commit. It isn't. A commit always contains all your files. But git doesn't bother to list them in the git status, because that could be an unnecessarily huge list. There are ways to find out what's in the commit, but the screen you are displaying is not how to do it.)
TL;DR Don't worry, be happy.
I have linked a YouTrack server installation with a BitBucket repository. YouTrack can access the repository because it lets me choose the repository I want to track. However, when I make a commit , there is no content in the VCS changes tab, although something is happening because the number that appears in the tab that indicates the number of vcs changes get updated.
The user I am logged in with has permissions to see the issue(I can see it all the information but the VCS changes)
I have found the solution: it was a bug of the first builds of the 6.5 version. To avoid it, you have to download the latest version 6.5.17015
I am new in GitHub for Windows. I learn how to commit a single change.
But i don't understand how can i commit only a part of file.
On GitHub for Mac you can just select the line.
How can i do it on GitHub for Windows?
Update: January 2015, 14th: Partial commits in GitHub for Windows:
The newest release of GitHub for Windows supports selecting lines or blocks of changes when creating a commit. Simply click the desired lines in the gutter, create the commit, and leave the other changes for you to continue working on.
The GitHub post adds what I mentioned in my original answer below:
For people familiar with the command line, this change is similar to interactive staging using git add -i or git add -p.
(Original answer: Aug. 2013)
From GitHub for Windows, you can open the console, and type:
git add -p -- path/to/your/File
You will then be able to stage exactly what you want from that file.
git add --patch:
Interactively choose hunks of patch between the index and the work tree and add them to the index.
This gives the user a chance to review the difference before adding modified contents to the index.
I know I am a bit late on this thread. But I was facing an issue where the selected code block was not getting added when I click on the line I wanted to include in the commit. Just make sure you've disabled the Hide whitespace changes checkbox in the settings menu.
My iOS app is having a strange core data bug, and I contacted Apple's developer technical support for help. They are asking me to submit a copy of the offending code, so they can see what is going on exactly and help me identify the problem, but as one would expect I don't want to give them all my code, not only because it is proprietary but also because I want them to be able to identify the arts of the code that are having issues.
So I have removed 95% pf my code so that the app still builds and loads, and the problem can be demonstrated. I would like to provide them with a git repository, so that the developer who looks at my code can see how the changes I am making creates the bug.
However, I don't want to send them the whole git repository as it stands because the history would allow them to just go back in time, and undo all of the deleting work that I did. What is the proper way to go about "pruning" a copy of my git repository, so that a particular commit will become the root of the new commit tree?
You can delete a given file/files using git filter-branch.
See here:
https://www.kernel.org/pub/software/scm/git/docs/git-filter-branch.html
Specifically, you may use the following example to delete a file named as filename:
git filter-branch --index-filter 'git rm --cached --ignore-unmatch filename' HEAD