Re: [PATCH] Ignore Vim swap files.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/05/2015 07:34 AM, Andrea Bolognani wrote:
> This removes some noise when you're working on the repository
> and also have a bunch of source files open in Vim in another
> terminal.
> ---
>  .gitignore | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/.gitignore b/.gitignore
> index 7bcf359..1a5cf8e 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -18,6 +18,7 @@
>  *.pyc
>  *.rej
>  *.s
> +*.swp
>  *~
>  .#*
>  .deps
> 

Instead of adding more bits to the .gitignore that aren't specific to the
project, I'd recommend you set up a global .gitignore to ignore editor bits:

https://stackoverflow.com/questions/7335420/global-git-ignore

- Cole


--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]