Situation is:
Currently, I have a repository name phimpme-iOS. I want to capitalize the first letter of the repository, Phimpme-iOS.
When I change the name in Settings > Options > Repository Name, it cannot be changed and it is showing -
The repository Phimpme-iOS already exists on this account
User names and repository names are case-insensitive at Github: phimpme-iOS is the same as Phimpme-iOS; that is, from Github PoV you're trying to rename the repo to an equivalent name.
Try a completely different name — xxx, for example — and then rename it once more to Phimpme-iOS.
Rename your repository to something completely different (e.g. "foo") and then name it back to the original name with the desired capitalization.
Related
This is the check name in Github using Github Actions.
It contains the workflow name + job id + step name + on condition.
Is it possible to make it shorter, as we have with apps? SonarCloud, for example, only has a single name.
Removing the name parameter only makes it worse since github will use the full filename (plus path) instead of a single friendly name.
You can customise that by defining run-name on top level of your workflow.
run-name: "SonarCloud Code Analysis"
You can read about it in docs here
can i restrict barnch name in our pattern so all developers can follow predefined format of branch name?
I want to apply branch name pattern globally so when developer create branch and submit code , then branch name must first validate with our defined naming convention, if succeeded then it will pass to remote other show error message in local system
Thanks
Can I filter files in a GitHub repository by file content?
For example, there is the public repo:
https://github.com/xamarin/mobile-samples.
I know that I can find file by name using this option:
https://github.com/xamarin/mobile-samples/find/master
But, can I filter results to files containing specified text eg. "Entry"?
Is there some query-string which I can use to do that?
I mean something like this:
https://github.com/xamarin/mobile-samples?content=entry
Just open repository, go to top search bar (where you search for other repos) and type:
Entry
Select to search in current repository, not "All GitHub".
To search for term in particular file of repository type:
Entry filename:example_filename.java
It will display all "Entry" in particular file.
In github search, the following string allows me to search JavaScript code that contain Acode in all the repositories of the user NameOfUser:
user:NameOfUser language:JavaScript ACode
Now, I would like to add another condition: i am only interested in the code containing ACode in the repositories whose name contains repokey.
Does anyone know how to write the request?
The search API already does this. You can just use the search that you've posted above to search for repositories containing the text you've specified.
For example...
user:mrdoob language:JavaScript Three Extension
returns this...
https://github.com/search?utf8=%E2%9C%93&q=user%3Amrdoob+language%3AJavaScript+Three+Extension&type=Repositories&ref=searchresults
As above answer I also tried with type=Code and added a "WebGLBufferRenderer" keyword, See if it helps:
https://github.com/search?utf8=%E2%9C%93&q=user%3Amrdoob+language%3AThree+Extension+WebGLBufferRenderer&type=Code&ref=searchresults
Consider my local repository contains more than one file, while doing checkout for a particular commit of a file, other files in the repository got deleted.
I am using following API (git is the instance of git repository)
git.checkout().setName(commitId).call()
Is this correct way to check out a particular commit of a particular file?
The JavaDoc of setName() says
When only checking out paths and not switching branches, use setStartPoint(} to specify from which branch or commit to check out files.
And for addPath() it states:
If this option is set, neither the setCreateBranch() nor setName() option is considered. In other words, these options are exclusive.
Therefore I think you should use
git.checkout().addPath( ... ).setStartPoint( ... ).call();
Your call reset the index (and can remove files no longer present in the new commit you check out)
You can look for a more precise example in jgit/porcelain/RevertChanges.java
// revert the changes
git.checkout().addPath(fileName).call();
In your case:
git.checkout().setname(commitId).addPath(fileName).call()