w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
Git: says origin already exists on "NEW" (init) repository, using shell but installed github for windows
I've been running into the same issue, and I think I've figured it out finally. GitHub for windows installs a version of PortableGit in /Users/<username>/AppData/GitHub. In the PortableGit directory, under /etc, there's a gitconfig file. This is the system config. It defines "origin" and "upstream", presumably with defaults that are meaningful to GitHub. I can't say for sure, but I started noticing this problem in the latest few updates of the GitHub for Windows client. Sadly, the release notes don't point to anything probative and the Windows client isn't open-source so it's hard to tell. I've sent a message to their support address, so I'll update here if I hear anything back. Edit: GitHub support responded saying this is a known issue and will be fixed soon.

Categories : GIT

Make a Shell script calling Perl scripts executable in windows
Running perl scripts from a .bat in Windows Installation & Configuration of perl First, install perl (I prefer Strawberry Perl but ActivePerl will work too). This should put perl in your path, to check open up a command line and type: echo %PATH% You should see C:strawberryperlin in there (perl is in that directory). Adding perl to your path (skip if already present) Navigate Start -> Settings -> Control Panel -> System -> Advanced -> Environment Variables. Choose Path and append the following to the variable: ;C:strawberrycin;C:strawberryperlin Close your command shell and open a new one. Retry echo %PATH%. Assuming perl is in your path now... Make a file called perlscripts.bat and type the following: perl c:path oscriptsscript1.pl perl c:path oscriptsscript2.pl Runni

Categories : Perl

Github, Github for Windows, on every commit generates us.stackdump
This is similar to the msysgit issue (in progress) 25, with one only suggestion for now: replace msys-1.0.dll by a new one in "documents and settingsadministratorlocal settingapplication datagithubportablegit_xxxx..." Try first to commit with the msysgit included in GitHub for Windows, and see if the issue persists. Launch a session through C:UsersYourUsernameAppDataLocalGitHubPortableGit_93...git-cmd.bat Or through the icon "Git Shell", which launches: C:UsersYourUsernameAppDataLocalGitHubGitHub.appref-ms --open-shell

Categories : Github

Does it make a difference to use the GitHub app when integrating Xcode with GitHub?
You can still have conflicts. If somebody makes a change to the project file and you make a change to the project file and you try to commit it at the same time as (or soon after) the other person, there's a good chance you'll see conflicts. Thankfully, the "project.pbxproj" project file is text which can you can open with your favorite editor (vi or emacs or whatever) and you can resolve the conflicts rather easily.

Categories : Xcode

github for windows, cloned repos don't put in github tab
According to github support, "Currently the 'github' tab only shows repositories that are under your account or under an organization that you belong to." Maybe requested feature will be added later

Categories : Misc

When typing in dropdownlist, make Windows search for more than 1 character?
If you need suggestion, you can use this code block: var peopleAutoComplete = context.People .Select(c => new { c.Firstname, c.Surname }) .ToArray(); List<string> peopleAutoCompleteString = new List<string>(); foreach (var item in peopleAutoComplete) { peopleAutoCompleteString.Add(item.Surname + " " + item.Firstname); } AutoCompleteStringCollection collectionSource = new AutoCompleteStringCollection(); collectionSource.AddRange(peopleAutoCompleteString.ToArray()); txtbx_Surname.AutoCompleteCustomSource = collectionSource; My sample code, add auto complete feature to 'TextBox'.

Categories : C#

Is it posible to make table view index start after search bar and make search bar fixed at the top?
You might be adding UISearchBar to UITbaleView's header that is why it goes up while you scroll the UITableView. You can take UISearchBar and UITableView from xib/nib and first put UISearchBar on top and below that put your UITableView may be you problem will be solved. If you need any help or guidance then you can tell me thanks :)

Categories : Iphone

How do I make a patch from a github repo if I failed to make a feature branch?
Generate the patch using git format-patch and it will split them up. You could also just make your diff with git diff HEAD^ to get only your commit (which is presumably the most recent one).

Categories : GIT

GitHub - failed to connect to github 443 windows/ Failed to connect to gitHub - No Error
Well I did following steps Google the error Got to SO Links(here, here) which suggested the same thing, that I have to update the Git Config for proxy setting Damn, can not see proxy information from control panel. IT guys must have hidden it. I can not even change the setting to not to use proxy. Found this wonderful tutorial of finding which proxy your are connected to Updated the http.proxy key in git config by following command git config --global http.proxy http[s]://userName:password@proxyaddress:port Error - could not resolve proxy some@proxyaddress:port. It turned out my password had @ symbol in it. Encode @ in your password to %40 because git splits the proxy setting by @ git config --global http.proxy http[s]://userName:password(encoded)@proxyaddress:port B

Categories : GIT

Search in Issues feature gone from GitHub?
When browsing a repository, you can use the "/" shortcut (just type the character) to easily search issues (as well as the code.) There are a lot of really helpful shortcuts (i.e. "gi", which transports you to a repos issues list.) Type "?" to get a list of shortcuts for a particular context.

Categories : Search

github code search api always return 404
You might need to set a special user agent. http://developer.github.com/v3/#user-agent-required EDIT : You also must provide a custom media type in the Accept header according to this page : developer.github.com/v3/search

Categories : Python

GitHub API search optional keywords
The API search functionality is from v2 of the API. At that time, GitHub search was really suboptimal and it has since significantly improved thanks to the awesome team over there. Unfortunately, that hasn't improved the API search so, that is still tied to other functionality.

Categories : Github

How to search for a commit message on GitHub?
From the help page on searching code, it seems that this isn't yet possible. You can search for text in your repo, including the ability to choose files or paths to search in, but you can't specify that you want to search in commits. Maybe suggest this to them?

Categories : Search

Translating shell script into Windows command shell script (batch)
for /L makes a count-controlled loop in batch. mkdir remains mkdir. @echo off for /L %%y in (1,1,9) do mkdir week_0%%y mkdir week_10

Categories : Shell

github code search api returns html instead of json
You are using the URL: https://github.com/search?q=chembl+created:>=2000 You should be using the URL: https://api.github.com/search/repositories?q=chembl+created:>=2000. Here is the documentation: http://developer.github.com/v3/search/#search-repositories

Categories : Python

github generate ssh key on windows
As I mention in "Where is git.exe located?" within GitHub for Windows, you have a portable git installed for you with this application. You need to open a bash git session in order to use ssh commands. The settings allow you to define the kind of shell you want: GH4W is a sandboxed installation of Git and the GitHub application that takes care of all that configuration. Please note, it will not mess with your existing Git environment if you have one. There will be two shortcuts installed on your machine, one for the GH4W application and another labeled “Git Shell”. The Git Shell shortcut launches the shell of your choice as configured within the GH4W application’s options menu. You can also launch the shell from within the application for any given repository. By de

Categories : Windows

Cloning repository from Github to windows
HTTP 407 is indicates you need an HTTP Proxy Username/Password configured. I can't help you with what your proxy server is, or the credential to use it - but I'd check with the network folks wherever you're at. You can do this with git config command. $ git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080 I'm not certain if TortoiseGit has a UI to set this, but it most likely does. It will undoubtedly respect the underlying git CLI setting, so I'd go with that just to be sure. Also, see here for more discussion.

Categories : GIT

Github for Windows not adding new files
Actually I don't think you are missing anything. I just tested this and this is not the default behaviour. Normally after you commit, the files should be flagged as unsynced. When you click Sync button the committed changes should be pushed to the upstream. This is most probably a bug. Before commit: After commit :

Categories : GIT

GitHub for Windows: Login Failed
Question is closed. Just reinstalled the app 3 times. Always helps. Edit: there was a problem with ssh keys. They was created, but they didn't push to GitHub, so we couldn't login with them. Just in case, if someone has this problem too.

Categories : GIT

Cannt install github for windows
Try this: Advanced Computer User Solution (manual update): 1) Start your computer and log on as an administrator. 2) Click the Start button then select All Programs, Accessories, System Tools, and then click System Restore. 3) In the new window, select "Restore my computer to an earlier time" option and then click Next. 4) Select the most recent system restore point from the "On this list, click a restore point" list, and then click Next. 5) Click Next on the confirmation window. 6) Restarts the computer when the restoration is finished. Novice Computer User Solution (completely automated): 1) Download (0xc000007b) repair utility. 2) Install program and click Scan button. 3) Click the Fix Errors button when scan is completed. 4) Restart your computer. From here.

Categories : Windows

GitHub for Windows: How to commit only a part of the file?
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 a

Categories : Misc

Use R to push local repo to github on Windows
The problem simply seems to be mixing up ssh and https protocols. Note the URLs should be: # https: "https://github.com/<username>/<myrepo>.git" # ssh: "git@github.com:<username>/<repo>.git" You have: cmd5 <- paste0(shQuote(gitpath), " remote add origin https://github.com:", github.user, "/", repo, ".git") cat( cmd5 ) "... remote add origin https://github.com:trinker/foo2.git" Just change cmd5 to # Note the forward slash at EOL in place of the colon cmd5 <- paste0(shQuote(gitpath), " remote add origin https://github.com/", github.user, "/", repo, ".git") "... remote add origin https://github.com/trinker/foo2.git" It also couldn't hurt to run this immediately after git add .: cmdStat <- paste0(shQuote(gitpath), " status") shell(cmdStat, int

Categories : Windows

Jenkins-github repository error (windows)
In Jenkins system configuration, add the path of git.exe file. In my case, git.exe in C:UsersusernameAppDataLocalGitHubPortableGit_some#ingit.exe did not work but "gitk.cmd" in ...cmdgitk.cmd worked fine.

Categories : Github

How to hide deleted files from GitHub for windows
When a file is shown as 'deleted' in GitHub for windows, the application is trying to tell you that you've deleted a certain file since you've cloned the repository. You can't hide the files coming up as 'deleted', as they're changes that need to be committed, however, you can untick the files by clicking the checkbox next to the file name in GitHub for windows, which will stop you committing the deleted files to the Git repository. In future, if you wish to stop changes that have been made to a specific folder or file type from appearing in GitHub for windows, you can add a .gitignore file to the root directory of the Git repository, with the file extensions and folder names of the files you want to ignore. More information about gitignore files can be found at https://help.github.com/

Categories : Windows

GitHub: make fork an "own project"
In order to do this you need to duplicate the repository. The short version is: Create a new repository on GitHub. Clone the forked repository you want to detach from its parent. Push all branches in this clone to your new repository.

Categories : GIT

Github Windows: Working with 'master' and 'gh-pages' branches
Git(hub) software for Windows is the buggiest thing I've ever used (well, besides Windows itself). Back when I used Windows, I could hardly get anything to work with Git at all. But, anyways, to answer your question, if you open a command prompt and type in git checkout -b gh-pages (if it complains about branch gh-pages already existing, remove the -b.) it should switch the branch. Then, you can launch notepad++ or whatever text editor you use (you might have to do it from the terminal, I can't remember), add the file you want, and then type in (in cmd): git add . This recursively adds all files in the folder to Git. git commit -m "Add file for easy user download" This adds the commit message. git remote add origin git@github.com:yourusername/yourrepository.git This adds the

Categories : Javascript

File will not sync after committimg in GitHub Windows client?
The easiest way to debug that kind of behaviour is to open a shell directly from GitHub for Windows: You can then check the result of: git status git add -A git commit -m "new commit" git push

Categories : Windows

GitHub for Windows installation error "Application cannot be started"
you can delete the 2.0 folder : : %userprofile%AppDataLocalApps (e.g. C:usersUsernameAppDataLocalApps) it works for me. more details:http://superuser.com/questions/483515/github-for-windows-install-error

Categories : Github

Github failed to clone repository on windows 7 application
First, if you are cloning with GitHub for Windows, then the latest msysgit is included in it: you just need to open a shell from G4W. Second, if the issue persists (from an independent up-to-date msysgit, or from G4W), then it should be some connection issue (network, firewall, blocked port...)

Categories : Windows

How does Github make issues for each repo start from id=1?
You should instead let each post have a unique global id. In threads or in the context of a user, numbering can start at 1 as a convenience -- that is, it will not be a number stored in the database, but when you request /users/someuser/posts/1 it will actually look up the first post for that user of all of their posts ordered by ascending creation date, regardless of what the post ID actually is. Example: user requested /users/someuser/posts/3, SQL might be something like SELECT * FROM posts WHERE username = :username ORDER BY date ASC LIMIT 1 OFFSET 2

Categories : Ruby On Rails

Make search term disappear after search in SearchView
In onCreateOptionsMenu add, searchItem = menu.findItem(R.id.action_search); @Override public void onBackPressed() { if(searchItem.isActionViewExpanded()) searchItem.collapseActionView(); else super.onBackPressed(); } In your Activity add, @Override public void onBackPressed() { if(searchItem.isActionViewExpanded()) searchItem.collapseActionView(); else super.onBackPressed(); } If you want to target lower versions, MenuItemCompat.collapseActionView(searchItem); MenuItemCompat.isActionViewExpanded(searchItem);

Categories : Android

Windows search - full text search in c#
Here is the code that does work - in example I made it to search for the word "dummy" in the desktop folder: string connectionString = "Provider=Search.CollatorDSO;Extended Properties="Application=Windows""; OleDbConnection connection = new OleDbConnection(connectionString); string query = @"SELECT System.ItemName FROM SystemIndex " + @"WHERE scope ='file:" + System.Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "' and FREETEXT('dummy')"; OleDbCommand command = new OleDbCommand(query, connection); connection.Open(); List<string> result = new List<string>(); OleDbDataReader reader = command.ExecuteReader(); while (reader.Read()) { result.Add(reader.GetString(0)); } connection.Close();

Categories : C#

GitHub for Windows - I commit and sync, but list of uncommit changes stays
Potentially silly question (especially given you are using a GUI), but are you sure you are committing from the correct location? I've fallen victim to the same thing and it happens when I have multiple SSH windows open in and I accidentally try to commit from live (as opposed to dev) after just having pulled. This fails in the same way you describe as live is never ahead of the repo. I've kicked myself for not seeing it quickly before.

Categories : Windows

Linux Shell .sh, Search Database
I think you are looking for the "-v" option to grep. From the grep man page : -v, --invert-match Invert the sense of matching, to select non-matching lines. So you would have to change your grep command to : grep -il -v 'A' -v 'B' -v 'C'

Categories : Linux

How to make individual pull requests vs "stacking" them on top of each other in Github?
You just need checkout the branch you started with in between each bunch of changes So pull, to get you sync'd up. checkout master if you aren't on that branch Create a branch and do your stuff then checkout master again, will get you back to where you were. So you end up with Master->Branch1 Master->Branch2 instead of Master -> Branch1 -> Branch2

Categories : GIT

GitHub/git - how to make only one branch (gp-pages) and delete other branches
You might need to change the default branch in your remote repo to be something other than the master branch:

Categories : GIT

How can I make separate pull-requests for each commit in GitHub?
Here are some screenshots taken from the Mac OSX version of the GitHub desktop program. Here I am making the first commit, but you can see both changes have been made prior to the commit: Here I am making the second commit: Here you can see that each commit was accepted individually: Note: Some names have been blanked out for privacy. Assuming that the Windows version of GitHub has the same options, I would download the desktop program and try that.

Categories : Github

Merge two github repositories and make a pull request
You need to do the following: git fetch original git rebase original/master git push origin master (with 'original' being the name of the remote referring to the original repo url. 'upstream' would be a better name, since it wouldn't be so close to 'origin') (if you already pushed your master branch, you would need to do a git push --force origin master) See "Pull new updates from original Github repository into forked Github repository"; Your pull request will be automatically updated (no need to "redo" a pull request). But please: always make your pull request in a branch, not in master: see "How to do a Github pull request?". master should reflect exactly what is in upstream ('original') master.

Categories : GIT

How to make a search dialog with ActionBarSherlock?(not search)
To search continuously as the user types, set a query text listener. SearchView.OnQueryTextListener queryTextListener = new SearchView.OnQueryTextListener() { public boolean onQueryTextChange(String newText) { goSearch(newText); return true; } public boolean onQueryTextSubmit(String query) { goSearch(query); return true; } }; searchView.setOnQueryTextListener(queryTextListener); However, it looks like your application isn't set up for this kind of continuous searching. You have the SearchView in the menu in your MainActivity, but launch the SearchActivity to show results. Instead, your SearchView menu item needs to be in the same activity that will be showing results, and your goSearch() method should

Categories : Android

Does adding meta tags in a GitHub README make it more searchable
Not that I know of (GitHub support should be able to confirm or refute it). Even projects about meta and SEO (seo_meta, meta-tags, ...) don't add <meta> in their README.md. You find them mentioned in this documentation, but it is for a separate CMS: forkcms (nothing to do with GitHub pages).

Categories : Github



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.