Git LFS file not shown - github

While, submitting my pull request on github I saw some of the images are displaying the message Git LFS file is not shown and I'm having all the images in my working branch.What does that mean?

I suspect this problem maybe related your github settings for Git LFS.
Could you double check that it's enabled?
How to check Git Large File Storage Configuration
These are the actual instructions on the link.
Sign in to your GitHub Enterprise instance at http(s)://[hostname]/login.
Rocketship icon for accessing site admin settingsIn the upper-right corner of any page, click the Rocketship icon.
Site admin settings search fieldIn the search field, type the name of the repository and click Search.
Site admin settings search optionsIn the search results, click the name of the repository.
Admin ToolsIn the upper-right corner of the page, click Admin.
Admin ToolsIn the left sidebar, click Admin.
Disable buttonIn the Git LFS section, click Enable or Disable.

Related

How to add a project to github with the github desktop application? The clone button is disabled after pasting the link of my repo

The clone button is disabled.
The Git folder is empty.
I got the link from github.com in my repo.
This is how I copied the link from my repo:
But when I paste the link to the application the clone button is still disabled.
The "GitHub.com" tab is meant to search for a repository by name, so you should enter something like LineRenderer-Controller, possibly including the username as well.
If you already have the full URL, you should put it in the "URL" tab.

How To Delete GitHub Repository With No Settings Icon

How do I delete a repository from GitHub when there is no Settings icon?
Everything I've found refers to the Settings icon and then scrolling to the bottom to type in the Repository name for confirmation, but what do I do when there is no Settings icon?
If you have no Settings icon, then you are not an administrator of the repository. As such, you cannot delete the repository or change any of its settings.
If you think the repository should be deleted, you can ask an administrator of the repository or the organization to delete it. If you own the repository, check that you're signed in and using the correct account.

Sourcetree pushing with the wrong user?

Background:
I have two GitHub accounts: a main account and a rarely-used account.
If I remember correctly, I have used both of them with the copy of Sourcetree on my laptop.
I currently have just my main GitHub account listed in my Sourcetree's Tools-->Options-->Authentication settings page.
Problem:
When I try to push a branch from my laptop to my GitHub remote for my main account, it fails, with the git error message indicating that I had actually tried to push with my rarely-used account, even though it's nowhere to be found in my Sourcetree settings pages.
The Atlassian team provided a solution for this (here):
Open the repo
Click "Settings"
Double click on the "origin" item in the listing
Edit the url to add your username before the URL of the repo. Here are some examples:
https://USERNAME#contoso.com/repo/blah.git
https://USERNAME#github.com/host/repo_name
You should be prompted for a password the next time you try to push or pull
I was able to solve the problem by opening up my Sourcetree userhosts file, located at (on Windows 10): C:\Users\<USERNAME>\AppData\Local\Atlassian\SourceTree\userhosts, as hinted at in Atlassian's documentation for how to reset your Sourctree settings.
The file only contained these lines:
github.com
<my-rarely-used-account>#gmail.com
I deleted that second line which referenced my rarely-used account, restarted Sourcetree, tried to push again, and this time it prompted me for my GitHub password, and I could see that the username was (correctly) my main GitHub username. I entered my password and the push succeeded.

egit - not authorized

I just connected to GIT from Eclipse Juno using EGit, and successfully cloned a certain remote repository. During the clone I entered my Github username and password, but chose not to save them.
Then I tried to "Fetch from Upstream". I got this error:
https://github.com/biunlp/nlp-lab.git: not authorized
I had no chance of entering my username and password...
This is strange since I connected to this repository in order to clone...
Update 2022: In what follows, always use:
a App password, not your account password (see blog post).
So create your app password.
a BitBucket Cloud, since BitBucket server will be discontinued in Feb. 2024.
A. To specify credentials individually for each remote
Open Git repositories view,
open "Remotes > origin > <your push url>"
click "Change Credentials..."
(From User Guide - Resource Context Menu)
B. To specify credentials per server
If you want to access multiple repositories on the same server without providing the same credentials multiple times, you may use .netrc. With this, eGit will use the configuration you provide.
Create a text file called .netrc (_netrc in Windows) in the user home directory.
Add content to the file in this form:
machine my.server1.com
login yourUserName
password yourPassword
machine my.server2.com
login yourUserName
password yourPassword
The Stash documentation contains more information about .netrc
Security issue The problem with using .netrc this way is that the password is visible in plain text. Refer to this answer in Stackoverflow to solve that problem.
More secure option (2022): EGit (from issue 441198) can be made (with an extension) to recognize a native Git credential helper, using a secure encrypted cache:
install a native Git
install the GCM (Git Credential Manager), which is cross-platform, and already package with Git For Windows for instance.
instruct EGit to look for credentials in the GCM: gitflow-incremental-builder/gitflow-incremental-builder
register your password or token in said GCM
printf "Host=my.server1.com\nprotocol=https\nusername=yourUsername1\npassword=passwd1" | \
git credential-manager-core store
# and:
printf "Host=my.server1.com\nprotocol=https\nusername=yourUsername1\npassword=passwd1" | \
git credential-manager-core store
Look for executable git-credential-manager-core, and add its folder to your %PATH%/$PATH.
You can try:
eclipse/myeclipse > menu
window > preferences > general > security >
content > click "delete" > ok
If you're using Two Factor Authentication on GitHub, the "not authorized" error can be returned even if you are using the correct username and password. This can be resolved by generating a personal access token.
After generating the secure access token, we'll use this instead of a password. Make sure not to leave the page before you're done, because once you leave the page, you'll never see it again (thankfully it can be regenerated, but anything using the previously generated token will cease to authenticate).
This assumes that you've successfully installed EGit and that you've successfully cloned a repository.
Go to your GitHub.com settings, and in the left hand pane click Personal access tokens.
Click Generate new token. Select the scopes that you'd like this token to be able to use, and generate it.
Copy the token. It should look something like this: 9731f5cf519e9abb53e6ba9f5134075438944888 (don't worry, this is invalid).
Back in Eclipse (Juno, since that's OP's version), click Window > Show View > Other.... Under Git, select Git Repositories.
A new pane appears, from which you can open (repository name) > Remotes > origin.
Right click on a node and choose Change Credentials.... Enter your username for User, and your secure access token for the Password.
I had a similar problem when I changed my password on the remote repository.
Here is how I fixed it on Eclipse on Mac:
Important Note: These instructions have the side effect of clearing all passwords and other secure information. I was fine with that, but you will want to consider that before you follow these instructions.
Click Eclipse -> Preferences on menu.
Expect a popup window called Preferences.
Expand the "General" tree item.
Double click the "Security" tree item.
Expect the main pane of the popup to change to "See 'Secure Storage' for..."
Click 'Secure Storage'.
Expect the main pane to change to tabbed window.
Click the "Contents" tab.
Click "Delete".
Accept a warning that all your secure information is deleted.
Click "Cancel" or "Apply" to exit the popup window.
Click the 'Git Pull' icon and expect to be prompted for username and password.
This worked for me:
Go to Git profile-> Settings -> developer settings-> personal access tokens
delete if any existing token and generate a new token [provide note, specify no.of days and repo checked] ->Copy the new token generated
Goto eclipse and now when the same login prompt appears, try providing the personal token generated as password instead of Git password.
Bitbucket Cloud recently stopped supporting account passwords for Git authentication. From march 2022.
So use app password. Please read more information on below links.
Bitbuckect Announcement
Bitbuckect blog
App password

Possible to Connect Netbeans with GitHub?

I know the Git integration is Netbeans 7.0 is new and under development, but has anyone had success on pushing/pulling to GitHub?
When I click Git->Push the remote repository url shows up correctly under Step 1. Configured Repository.
But is just stays stuck on " Connecting to repository". It also pops up a box saying "Specify Git repository location" with the exact same url , clicking OK does nothing.
If instead I choose "Specify Git Repository Location" I eventually get an error, "Cannot connect to the remote repository at git#github.com:username/..."
ps. I am aware of the other similar stack questions but they are confusing, one person mentions that he was able to do this, while others mention is not yet possible to use a remote Git connection.
I have had the same issue.
And now it works fine for me.
I have done this:
1 With CLI ( Terminal for me) Define your remote repo :
cd yourlocalfolder
git remote add origin git#github.com:username/repo.git
2 Open Netbeans (7.1 for me)
Go to Team > Git > Remote > Push
3 You should see your remote repo preselected
4 in Private /public key browse to your rsa file
usr/username/ssh/id_rsa
5 Click on Next
6 Done
You need check 'Specify Git Repository Location:'
'Repository URL:' https://github.com/<your username>/<yourGitFile>.git
'User:' <your username>
But is just stays stuck on " Connecting to repository". It also pops up a box saying "Specify Git repository location" with the exact same url , clicking OK does nothing.
I faced the exact same issue and after I did some research I found that the problem was with the password.
GitHub isn’t accepting passwords for Git operations anymore.
So instead of using a password, Github suggests using Personal Access Token.
Go to your Github account settings.
Go to Developer settings in the sidebar.
Go to Personal access tokens.
Generate new token.
Make sure to check repo scope checkbox to access your repositories.
After you get your access token you can copy it and past it in the password field in the "Specify Git repository location" window and try to push your project.