Tag: git

54 votes
30 answers
2K views
How do I delete a Git branch locally and remotely?

I want to delete a branch both locally and remotely. Failed Attempts to Delete a Remote Branch $ git branch -d

avatar
Corey
0 1 0 9
asked 07 September, 2021
62 votes
30 answers
1.2K views
How do I undo the most recent local commits in Git?

I accidentally committed the wrong files to Git, but didn't push the commit to the server yet. How can I

avatar
Denese
0 1 0 9
asked 07 September, 2021
59 votes
17 answers
2.7K views
Add line break to 'git commit -m' from the command line

I am using Git from the command line and am trying to add a line break to the commit message (using git commit

avatar
Denese
0 1 0 9
asked 07 September, 2021
54 votes
16 answers
787 views
Count number of lines in a git repository

How would I count the total number of lines present in all the files in a git repository? git ls-files gives

avatar
Joseph
0 1 0 9
asked 07 September, 2021
54 votes
30 answers
432 views
How to specify the private SSH-key to use when executing shell command on Git?

A rather unusual situation perhaps, but I want to specify a private SSH-key to use when executing a shell (git

avatar
Deedee
0 1 0 9
asked 07 September, 2021
50 votes
3 answers
1K views
How to implement band-pass Butterworth filter with Scipy.signal.butter

UPDATE: I found a Scipy Recipe based in this question! So, for anyone interested, go straight to: Contents ยป

avatar
Rufus
0 1 0 9
asked 07 September, 2021
68 votes
8 answers
753 views
Cordova 5.0.0: Which files should I commit to git?

I use Cordova 5.0.0 and i have the following project structure: MyProject - hooks - platforms - p

avatar
Suzan
0 1 0 9
asked 07 September, 2021
60 votes
6 answers
608 views
.gitignore for PhoneGap/Cordova 3.0 projects - what should I commit?

I just tried to create a new phonegap 3.0 project... Note: I'm new to phonegap. Anyways, I see the projec

avatar
Luis
0 1 0 9
asked 07 September, 2021
55 votes
12 answers
2.4K views
Do I commit the package-lock.json file created by npm 5?

npm 5 was released today and one of the new features include deterministic installs with the creation of a pac

avatar
Dusty
0 1 0 9
asked 07 September, 2021