I tried it with some random text files, that I created on github, pulled them on my computer, modified them, then I created a separate branch on github, called 'another'. When I tried pushing the modified files from my computer to github using git I got the message: error: src refspec another does not match any&lt;br&gt; error: failed to push some refs to 'https://github.com/username/repo-name.git'  What I typed before: git push origin another
119338
I've got two branches that are fully merged together. However, after the merge is done, I realise that one file has been messed up by the merge (someone else did an auto-format, gah), and it would just be easier to change to the new version in the other branch, and then reinsert my one line change after bringing it over into my branch. So what's the easiest way in Git to do this?
74297
This conundrum is caused by running git pull from root.   There are various reasons for me to do so... I want my device to update code when booting up, and rc.local is run by root.  It all works mostly fine (npm install tends to fail when run by root, but that's a whole 'nother topic), the problem arises when I try to use the git repository with a non-root user afterward... some of the git files have been written by root, so now I can't use it anymore (permission denied).   So I'd like to recursively chown it back but there doesn't seem to be anything that really works on all of the little git files. I tried the -R flag and ./**/* path.  My guess is that neither of those techniques descend into dot-directories.
94837
I have been working on some classes using VS code and SFDX. I created a scratch org and pushed code to it using:  sfdx force:source:push -u MY_ORG_ALIAS   The push was successful.  I continued development and I happen to miss a semicolon in code. I hit the push command but this time instead of throwing a compilation issue DX thew this:     ERROR running force:source:push:  Push failed.   I have been working on DX for months now and I have always seen a compilation error message and never this.  I then ran this sfdx force:source:push -u MY_ORG_ALIAS --dev-debug  This was the output of the command:   Has something changed with DX? Am I missing something here?
8770
When I try to use sftp to transfer a directory containing files, I get an error message:  skipping non-regular file directory_name   The directory contains a couple of files and two subdirectories.  What am I doing wrong?
954
The command git add [--all|-A] appears to be identical to git add .. Is this correct? If not, how do they differ?
105424
I would like to create a symlink to ~/foo/ but when I write that, ~ is always resolved to the absolute home path. I've used ../s in the past and they work fine, is ~ not allowed?  The reason I'd like to do that is because ~ has a different absolute path depending on the machine and Linux/OSX, but always points to my home directory.  I'd like to include such a link in a git repo sync'd across several machines.
79456
I am trying to copy files from one server directly to another, bypassing my local computer.  I did  scp -r usrname@server1.com:~/data/* usrname@server2.com:~/data/ Password:  Host key verification failed. lost connection   Is this even possible? How may I fix it?
103148
A couple weeks ago I didn't have any issue when using Bibtex on a document where the different parts were included with \include commands, but today I updated Miktex, and now it seems not to work anymore. Now when I compile the main document I get an error message that says  I couldn't open auxiliary file section.aux ---line 3 of file test.aux : @input{section.aux : } I'm skipping whatever remains of this command  Here's a minimal (non)working example : my main file &quot;test.tex&quot; is just \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} \begin{document} \include{section} \bibliography{reference} \bibliographystyle{plain} \end{document}  where the file &quot;section.tex&quot; is just \section{My section} I need to test the citations, so see \cite{A}.  and the file &quot;reference.bib&quot; just contains one reference. It works like a charm if I add the section directly or if I \input it, but with \include it just gives the error message as above. I tried with different editors (Texniccenter, Texmaker, Texstudio and Texworks) and it seemed to have the same issue each time. What is causing this problem ? P.S. I've looked at an old version of my document that used to work, and I've noticed a difference in the .aux files : the old version has, near the beginning, a line \bbl@cs{beforestart}  whereas in the newer versions it seems that this line has become \@nameuse{bbl@beforestart}  I'm not sure it's related or if it makes any sense, but I thought I'd add it in case it made a difference.
55686
We'd like to make a few basic hook scripts that we can all share -- for things like pre-formatting commit messages.  Git has hook scripts for that that are normally stored under &lt;project&gt;/.git/hooks/.  However, those scripts are not propagated when people do a clone and they are not version controlled.    Is there a good way to help everyone get the right hook scripts?  Can I just make those hook scripts point to version controlled scripts in my repo?
17049
I'm trying to post a sample of code that looks like this:        Look at all of those comments, and it still won't allow me post! What am I doing wrong?
77290
Our team accidentally pushed some personal information onto Github in the form of a H2 database file. Is there any way to remove a file cleanly and completely from the server?  Simply doing git rm xxx.db does not seem to be the answer because one can easily git reset --hard to the head which contains the user data.  On the other hand,  git reset --hard [the head before the db file was committed]   is also not our preference because there have been more than 10 commits since the database was committed.  What should we do to remove that database file?
84848
I know how to make a new branch that tracks remote branches, but how do I make an existing branch track a remote branch?  I know I can just edit the .git/config file, but it seems there should be an easier way.
72990
I've been developing Blender add-ons for a while now, and one thing that I've always struggled with is how to keep a single copy of the add-on so that I can make changes to the code and quickly test in Blender AND have it all under source control. I don't want my Git repository inside Blender's add-ons directory, as it can easily get deleted by Blender (via the remove add-on button), and it enforces a particular folder structure on the repository.  Currently, I mainly use an external text editor (Sublime text) to work on the add-on, and then zip it up and install when I want to test my changes. As you can imagine, this is slow and laborious, so I'd rather work in a way that allows me to simply reload the scripts and have everything work, but not have to copy changes from the Blender folder back to my source repo.  I'm sure this must be a solved problem, so could someone explain how I can set up my repository so that it's safe from accidental deletion, but can easily be reloaded in Blender.
11736
This is, how I download various master branches from GitHub, and I aim to have a prettier script (and maybe more reliable?).  wget -P ~/ https://github.com/user/repository/archive/master.zip unzip ~/master.zip mv ~/*-master ~/dir-name   Can this be shorten to one line somehow, maybe with tar and pipe?  Please address issues of downloading directly to the home directory ~/ and having a certain name for the directory (mv really needed?).
79122
I have previous experience using GIT in other development environment and I never had much troubles using it.   We where using SVN for salesforce, however we want to migrate to GIT for the uncountable number of advantages compared to SVN.   I could configure the remote and local repo without any problem and also I could commit and push the changes to my remote repo.   However, I can't figure out how can we use GIT when more than one developer is doing changes on the repo. I always get conflict after refresh from server.  Sample where bought dev's are working on the same repo/branch  Dev 1:    Refresh from Server  Change code Save to Salesforce Commit  Push to remote   After Dev 1 pushing   Dev 2 (Steps A):   Refresh from Server  Change code Save to Salesforce Commit  Push to remote (Error: out of date)  If dev 2 try pull (or fetch + merge) then Conflict    Other steps we tried  Dev 2 (Steps B):   Refresh from Server  Pull (or fetch + merge) then Conflict   I was thinking in the possibility to use two branches: one for dev, just to be able to push commits to remote repo and the merged code will come always from Salesforce.  But this practice will kill some of the GIT benefices as diff and blame.   I've tried searching on Google unsuccessfully.
16593
I want to cp a file to another directory but that directory doesn't exist yet.  So I would do:  mkdir /new_place cp the_file /new_place   Can I do this in one? I imagine something like cp the_file -m /new_place if "m" stood for "make dir's that don't exist"  Would this be a chance to use scp, rsync or another copying utility?
77821
I have been using git to keep two copies of my project in sync, one is my local box, the other the test server. This is an issue which occurs when I log onto our remote development server using ssh;  git clone me@me.mydevbox.com:/home/chris/myproject Initialized empty Git repository in /tmp/myproject/.git/ Password: bash: git-upload-pack: command not found fatal: The remote end hung up unexpectedly fetch-pack from 'me@me.mydevbox.com:/home/chris/myproject' failed.   (the file-names have been changed to protect the guilty... !)   Both boxes run Solaris 10 AMD. I have done some digging,  if I add --upload-pack=$(which git-upload-pack) the command works, (and proves that $PATH contains the path to 'git-upload-pack' as per the RTFM solution)  but this is really annoying, plus 'git push' doesn't work, because I don't think there is a --unpack= option.    Incidentally, all the git commands work fine from my local box, it is the same version of the software (1.5.4.2), installed on the same NFS mount at /usr/local/bin.    Can anybody help?