How to upload a selenium project on github with below mentioned error? - github

I have tried uplaoding my project using Git bash but getting an error.
[1]: https://i.stack.imgur.com/H1sjx.png
I've also looked at the links provided so far but I'm still getting no where.
Thanks in Advance !

You clearly seem to be very new at Git. I would HIGHLY recommend you look at a tutorial and try and understand for yourself what your problem is. With that said, here is your solution
Assuming you have properly created and committed to a local git repository, add a remote repository as such git remote add origin https://github.com/link-to-your-git-repo.git. Then push everything with git push -u origin master.
Your problem is that you have a misunderstanding of how to use the Git Bash. I highly recommend you read this at the minimum.
https://git-scm.com/book/en/v2/Getting-Started-The-Command-Line

Related

Github webpage - Error 404 page not found

I have created a personal website in R studio and committed it to Github.
It is not loading at all, and can not figure out why it is not working.
The link to my github repository is https://github.com/CPRyan/CPRyan.github.io
I'm sorry I can't provide more details, but I really do not have any clue where to start.
Update:
It's not because I haven't configured the options:
Update 2:
https://cpryan.github.io does not work but, https://cpryan.github.io/index does!
Not sure if that helps.
In my case it was helpful:
git commit --allow-empty -m "Trigger rebuild"
git push
Simply committing to Github is not enough. You need to configure Github Pages to publish your site.
See this link.
Also, Index.html should be index.html (not capitalized)
I managed to solve this through trial and error.
I'm learning, so my process for creating my repository on github and on my local directory was messy. I still lack the knowledge to explain what the issue was, but here is what solved it.
I pulled from the github repository, merged, and then pushed the whole thing back online with commit and push. I guess this merged the two, "solved the deltas", and integrated it into a functioning set of files. Apologies for the terrible explanation but now it works!
Thanks to #Kevin Kang for pointing me in the right direction.

Laravel Forge Github Repository Error

I am trying to connect my Laravel Forge (digitalocean) server to my Github repo like I've done many times in the past, however, this time it is giving an error saying
You must specify a repository to clone.
However, when I go into the command line and do a git clone of the branch and repository, it works fine. Any ideas what might cause this? I have my SSH key for Forge added to Github already.
Thanks,
I ended up deleting the site on forge and reinstalling and it works now. Not sure exactly why it wasn't recognizing the repository, but it works now.

Newbie Unable to clone repo

I've never used a VCS before and I'm attempting to set one up now.
I'm doing some Game Development with Unity3d. At first I googled how to set up VCS for Unity; and I found this: http://www.gamasutra.com/blogs/BurkayOzdemir/20130303/187697/Using_Unity3D_with_external_VCS_Mercurial__Bitbucket_step_to_step_guide.php
I followed it until it came time to clone the repository from within the hgTortoise workbench. When I hit the clone button after copying and pasting the URL to my repo from the BitBucket.org website I received an error: "Repository Git clone https:://username#bitbucket.org/username/projectName.git not found code: 255" and I do understand what an HTTP 404 error is.
Anyone who has used the internet knows it means the page could not be found.
I created this repo as private; is that why it could not find my repo?
Then I proceeded to follow the instructions at BitBucket's "BitBucket 101" help page. I installed Git, had already created a BitBucket account and repo, and the instructions which followed.
I stopped at the point where the help page said to enter some command line things in to Git Shell. I'm running Windows 8.1 and searches have shown me that particular program doesn't exist on this PC.
Am I doing this correctly? What am I doing wrong? All I need is to set up a VCS.
Git and Mercurial are 2 different distributed version control packages. They both use a command line interface. TortoiseHG (the package referred to in the step-by-step you linked to) is a GUI extension that's only used for Mercurial. (HG is the chemical symbol for Mercury, get it?!)
Bitbucket is an online repository that can host either Git or Mercurial repositories.
It looks like you created your repository on Bitbucket as a Git repo and not a Mercurial repo. Just delete the repo on Bitbucket (make sure you have a good copy of your source code) and recreate it as a Mercurial repo. Then work with TortoiseHG as instructed in the step-by-step.
The fact that it's a private repo doesn't matter. That just means it will only be visible to you (vs. everyone) and will require a password to push and pull changes via https or ssh.
Well, first of all, it seems that the tutorial that you seem to be using is based on using Mercurial instead of Git.
If you're comfortable with diving into the command line, you can download TortoiseHG, which is a Windows shell extension: http://tortoisehg.bitbucket.io/
However, there's nothing wrong with using SourceTree as well, which is a GUI-based interface for dealing with both Git and Mercurial repositories: https://www.sourcetreeapp.com/
FYI, if you downloaded Git for Windows, it should've provided you with a terminal called Git Bash that you can use for Git commands.

hg-git repository not found

I would like to configure my Mercurial project to be able to push it into gitHub repository.
While using command:
hg push git+ssh://git#github.com/myusername/myproject.git
I receive a msg:
abort: repository git+ssh://git#github.com/myusername/myproject.git
not found!
I already check and establish SSH connection, and it looks ok:
Hi myusername! You've successfully authenticated, but GitHub does not
provide shell access.
my respository url copied from github (it's a fork from other open-source project): https://github.com/myusername/myproject.git
What else I should check? Why I have an information that it doesn't exist while, in fact, it does? Where can be a problem?
Thanks to rfkortekaas I found a problem with hg-git setup.
In ~/.hgrc there has to be:
[extensions]
hgext.bookmarks =
hggit =
Are you sure that you have enabled and setup the hg-git extension correctly. This error also appears if the extension is not correctly setup.
Can you try it with a local git repository to phase-out github as a possible error.
I'm not sure you can push in Git if you didn't clone your repository from a Git one before using hg-git. It seems me that hg-git manages a .git locally.

How do you use Netbeans to work with a Github project?

From what I can tell, nbGit doesn't talk to Github. The best idea I've had so far is to install msysgit, use it to clone the repository to the local drive, then point nbGit at the local clone (creating a second repository). Then I would use nbGit to talk to the repository on disk, and msysgit to sync the on-disk repository with Github. Is there a better way?
Support for the git pull and push commands does not look like it is yet implemented within the nbGit plugin - see this bug report for details... So I think using the command line to sync with github might be your best option for a little while still.